12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- declare type Hook = (code: string, filename: string) => string;
- declare type Matcher = (path: string) => boolean;
- declare type RevertFunction = () => void;
- interface Options {
-
- extensions?: ReadonlyArray<string> | string;
-
- exts?: ReadonlyArray<string> | string;
-
- extension?: ReadonlyArray<string> | string;
-
- ext?: ReadonlyArray<string> | string;
-
- matcher?: Matcher | null;
-
- ignoreNodeModules?: boolean;
- }
- export declare function addHook(hook: Hook, opts?: Options): RevertFunction;
- export {};
|