mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* [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>
16 lines
479 B
TypeScript
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
|