vite-plugin-dts-build
Version:
Fast .d.ts builds for Vite (worker + incremental) with optional dual ESM/CJS support.
35 lines (34 loc) • 1.07 kB
text/typescript
import type { PluginDtsBuildOptions } from './types.cjs';
export declare function dts(options?: PluginDtsBuildOptions): {
name: string;
enforce: "pre";
apply: "build";
buildStart(): Promise<void>;
writeBundle(): Promise<void>;
watchChange(_id: string, change: {
event: "create" | "update" | "delete";
}): void;
};
export interface PluginDtsDualModeBuildOptions extends PluginDtsBuildOptions {
packageRedirect?: boolean;
}
export declare function dtsForEsm(options?: PluginDtsDualModeBuildOptions): {
name: string;
enforce: "pre";
apply: "build";
buildStart(): Promise<void>;
writeBundle(): Promise<void>;
watchChange(_id: string, change: {
event: "create" | "update" | "delete";
}): void;
};
export declare function dtsForCjs(options?: PluginDtsDualModeBuildOptions): {
name: string;
enforce: "pre";
apply: "build";
buildStart(): Promise<void>;
writeBundle(): Promise<void>;
watchChange(_id: string, change: {
event: "create" | "update" | "delete";
}): void;
};