@types/string-replace-loader
TypeScript icon, indicating that this package has built-in type declarations

2.3.4 • Public • Published

Installation

npm install --save @types/string-replace-loader

Summary

This package contains type definitions for string-replace-loader (https://github.com/Va1/string-replace-loader).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/string-replace-loader.

index.d.ts

import * as Webpack from "webpack";

declare const loader: Webpack.loader.Loader;

declare namespace loader {
    type Options = ReplaceEntry | ReplaceEntries;

    interface ReplaceEntries {
        multiple: ReplaceEntry[];
    }

    interface ReplaceEntry {
        search: string | RegExp;
        replace: string | ReplaceCallback;
        flags?: string | undefined;
        strict?: boolean | undefined;
    }

    interface ReplaceCallback {
        (substring: string, ...args: any[]): string;
    }
}

export = loader;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/webpack

Credits

These definitions were written by Jason Kwok.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/string-replace-loader

Weekly Downloads

1,597

Version

2.3.4

License

MIT

Unpacked Size

3.78 kB

Total Files

5

Last publish

Collaborators

  • types