Files
SnowLuma/.pnpm-store/v11/files/0e/a10920a8923492a7ecc906d834d19ddbb1d3a3c084ccab588486e6c74bab5adf4d894b031dfdeecc7beca7a3d91175138f47b8db8bc317885a4ff74abe0ca1
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

15 lines
903 B
Plaintext

import { type Options } from "./index";
export interface HookOptions {
matcher?: (code: string) => boolean;
ignoreNodeModules?: boolean;
}
export type RevertFunction = () => void;
export declare function addHook(extension: string, sucraseOptions: Options, hookOptions?: HookOptions): RevertFunction;
export declare function registerJS(hookOptions?: HookOptions): RevertFunction;
export declare function registerJSX(hookOptions?: HookOptions): RevertFunction;
export declare function registerTS(hookOptions?: HookOptions): RevertFunction;
export declare function registerTSX(hookOptions?: HookOptions): RevertFunction;
export declare function registerTSLegacyModuleInterop(hookOptions?: HookOptions): RevertFunction;
export declare function registerTSXLegacyModuleInterop(hookOptions?: HookOptions): RevertFunction;
export declare function registerAll(hookOptions?: HookOptions): RevertFunction;