UNPKG

vite-plugin-react-server

Version:
32 lines 1.14 kB
declare module 'node:module' { interface ImportAttributes { [key: string]: string | undefined; } interface ResolveHookContext { conditions: string[]; parentURL: string | undefined; importAttributes: ImportAttributes; } interface LoadHookContext { conditions: string[]; format: ModuleFormat | null | undefined; importAttributes: ImportAttributes; shortCircuit?: boolean; } interface ResolveResult { url: string; shortCircuit: boolean; } interface LoadResult { format: string; source: string | SharedArrayBuffer | Uint8Array; shortCircuit: boolean; } interface HooksAPI { resolve?: (specifier: string, context: ResolveHookContext, nextResolve: (specifier: string, context: ResolveHookContext) => ResolveResult) => ResolveResult; load?: (url: string, context: LoadHookContext, nextLoad: (url: string, context: LoadHookContext) => LoadResult) => LoadResult; } function registerHooks(hooks: HooksAPI): void; } export {}; //# sourceMappingURL=rsc-worker.development.d.ts.map