clientnode
Version:
upgrade to object orientated rock solid plugins
7 lines (6 loc) • 491 B
TypeScript
import { FirstParameter, ImportFunction } from './type';
export declare const currentRequire: null | typeof require;
export declare const currentImport: null | ImportFunction;
export declare const optionalRequire: <T = unknown>(id: string) => null | T;
export declare const clearRequireCache: (cache?: typeof require.cache) => typeof require.cache;
export declare const isolatedRequire: (path: FirstParameter<typeof require>, requireFunction?: typeof require) => ReturnType<typeof require>;