2.3.4 • Published 6 months ago

@types/string-replace-loader v2.3.4

Weekly downloads
1,433
License
MIT
Repository
github
Last release
6 months ago

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.

2.3.4

6 months ago

2.3.3

7 months ago

2.3.2

3 years ago

2.3.1

3 years ago

2.3.0

4 years ago