文件操作 - register.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/sucrase/dist/types/register.d.ts
编辑文件内容
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;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件