We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e73db6 commit 7d6650eCopy full SHA for 7d6650e
packages/plugin-dts/src/dts.ts
@@ -10,7 +10,7 @@ import {
10
} from 'node:path';
11
import { logger } from '@rsbuild/core';
12
import color from 'picocolors';
13
-import type { DtsGenOptions } from './index';
+import type { DtsEntry, DtsGenOptions } from './index';
14
import { emitDts } from './tsc';
15
import { calcLongestCommonPath, ensureTempDeclarationDir } from './utils';
16
@@ -198,7 +198,7 @@ export async function generateDts(data: DtsGenOptions): Promise<void> {
198
);
199
return { name: entryName, path: newPath };
200
})
201
- .filter(Boolean) as { name: string; path: string }[];
+ .filter(Boolean) as Required<DtsEntry>[];
202
}
203
204
const bundleDtsIfNeeded = async () => {
0 commit comments