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.