UNPKG

rsbuild-plugin-dts

Version:

Rsbuild plugin that supports emitting declaration files for TypeScript.

12 lines (11 loc) 620 B
import type { Rspack } from '@rsbuild/core'; import { type PreparedDtsContext } from './dts.js'; import type { DtsGenOptions } from './index.js'; export type IsolatedDtsContext = Omit<DtsGenOptions, 'dtsExtension'> & PreparedDtsContext & { dtsExtension: string; bundlerConfig: Rspack.Configuration | undefined; }; export declare function createIsolatedDtsContext(dtsGenOptions: DtsGenOptions, bundlerConfig: Rspack.Configuration | undefined): Promise<IsolatedDtsContext>; export declare function processIsolatedDts(isolatedDtsContext: IsolatedDtsContext, options?: { logSuccess?: boolean; }): Promise<void>;