UNPKG

rsbuild-plugin-dts

Version:

Rsbuild plugin that supports emitting declaration files for TypeScript.

10 lines (9 loc) 628 B
import type { DtsGenerationBackend } from './backend.js'; import type { EmitDtsOptions } from './dts.js'; import { type GetTsconfigTsconfigResultForExecutable } from './utils.js'; type ExecutableDtsGenerationBackend = Extract<DtsGenerationBackend, 'tsc-executable' | 'tsgo-executable'>; type EmitDtsExecutableOptions = EmitDtsOptions<GetTsconfigTsconfigResultForExecutable> & { dtsBackend: ExecutableDtsGenerationBackend; }; export declare function emitDtsTsgo(options: EmitDtsExecutableOptions, _onComplete: (isSuccess: boolean) => void, bundle?: boolean, isWatch?: boolean, build?: boolean): Promise<boolean>; export { };