diff --git a/packages/plugin-dts/src/apiExtractor.ts b/packages/plugin-dts/src/apiExtractor.ts index 60ee74bdd..e0106e153 100644 --- a/packages/plugin-dts/src/apiExtractor.ts +++ b/packages/plugin-dts/src/apiExtractor.ts @@ -14,7 +14,7 @@ export type BundleOptions = { cwd: string; outDir: string; dtsExtension: string; - dtsEntry: Required; + dtsEntry: DtsEntry; tsconfigPath?: string; }; @@ -37,7 +37,7 @@ export async function bundleDts(options: BundleOptions): Promise { relative(cwd, outDir), `${dtsEntry.name}${dtsExtension}`, ); - const mainEntryPointFilePath = dtsEntry.path; + const mainEntryPointFilePath = dtsEntry.path!; const internalConfig = { mainEntryPointFilePath, // TODO: use !externals