Nonconformist Propaganda Machine

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

    2.3.2 • 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

    // Type definitions for string-replace-loader 2.3
    // Project: https://github.com/Va1/string-replace-loader
    // Definitions by: Jason Kwok <https://github.com/JasonHK>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 3.7
    
    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: Fri, 02 Jul 2021 22:33:02 GMT
    • Dependencies: @types/webpack
    • Global values: none

    Credits

    These definitions were written by Jason Kwok.

    Keywords

    none

    Install

    npm i @types/string-replace-loader

    DownloadsWeekly Downloads

    1,935

    Version

    2.3.2

    License

    MIT

    Unpacked Size

    4.33 kB

    Total Files

    4

    Last publish

    Collaborators

    • types