DefinitelyTyped/types/string-replace-loader/string-replace-loader-tests.ts
Jason Kwok ecc77f83c0
[string-replace-loader] Added type definitions (#44694)
* [node] Added `globalThis` support to `global`

* [node] Updated "Definitions by"

* [node] Fixed issue with `globalThis` only support TS 3.4 or newer

* [node] Updated package.json for node/v12

* [node] Added "path" entry to tsconfig

* [node] Fixed wrong "typeRoots"

* [node] Updated tests

* [string-replace-loader] Added type definitions

* Revert "Merge branch 'master' into node/global"

This reverts commit 132ba3c39a1e5e4c952cf8a2b7aec7e588c83f9f, reversing
changes made to 539042117c.

Co-authored-by: Jason Kwok <JasonHK@users.noreply.github.com>
2020-05-19 12:47:37 -07:00

16 lines
479 B
TypeScript

"use strict";
import { ReplaceEntries, ReplaceEntry, Options } from "string-replace-loader";
declare const options: Options;
options; // $ExpectType Options
declare const entries: ReplaceEntries;
entries.multiple; // $ExpectType ReplaceEntry[]
declare const entry: ReplaceEntry;
entry.search; // $ExpectType string | RegExp
entry.replace; // $ExpectType string | ReplaceCallback
entry.flags; // $ExpectType string | undefined
entry.strict; // $ExpectType boolean | undefined