UNPKG

899 BTypeScriptView Raw
1import { Options } from "./index";
2export interface HookOptions {
3 matcher?: (code: string) => boolean;
4 ignoreNodeModules?: boolean;
5}
6export declare type RevertFunction = () => void;
7export declare function addHook(extension: string, options: Options, hookOptions?: HookOptions): RevertFunction;
8export declare function registerJS(hookOptions?: HookOptions): RevertFunction;
9export declare function registerJSX(hookOptions?: HookOptions): RevertFunction;
10export declare function registerTS(hookOptions?: HookOptions): RevertFunction;
11export declare function registerTSX(hookOptions?: HookOptions): RevertFunction;
12export declare function registerTSLegacyModuleInterop(hookOptions?: HookOptions): RevertFunction;
13export declare function registerTSXLegacyModuleInterop(hookOptions?: HookOptions): RevertFunction;
14export declare function registerAll(hookOptions?: HookOptions): RevertFunction;