aports/testing/rollup/rollup.d.ts
2026-01-23 00:38:35 +01:00

21 lines
732 B
TypeScript

// Just enough for stage2 build to pass
export interface PluginContext extends Record<string, any> {
emitFile: (a1: any) => any;
}
export interface FunctionPluginHooks extends Record<string, any> {
generateBundle: (this: PluginContext, a1: any, a2: any, a3: any) => void;
load: (this: PluginContext, a1: any) => any;
renderDynamicImport: (this: PluginContext, a1: any) => void;
resolveId: (this: PluginContext, a1: any, a2: any) => any;
writeBundle: (this: PluginContext, a1: any) => void;
}
export type Plugin = Partial<FunctionPluginHooks>;
export type LogHandler = (a1: any, a2: any) => any;
export type PluginImpl = () => any;
export type RollupOptions = any;
export type WarningHandlerWithDefault = (a1: any) => any;