Skip to content

Commit 7d6650e

Browse files
committed
chore: update
1 parent 7e73db6 commit 7d6650e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/plugin-dts/src/dts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
} from 'node:path';
1111
import { logger } from '@rsbuild/core';
1212
import color from 'picocolors';
13-
import type { DtsGenOptions } from './index';
13+
import type { DtsEntry, DtsGenOptions } from './index';
1414
import { emitDts } from './tsc';
1515
import { calcLongestCommonPath, ensureTempDeclarationDir } from './utils';
1616

@@ -198,7 +198,7 @@ export async function generateDts(data: DtsGenOptions): Promise<void> {
198198
);
199199
return { name: entryName, path: newPath };
200200
})
201-
.filter(Boolean) as { name: string; path: string }[];
201+
.filter(Boolean) as Required<DtsEntry>[];
202202
}
203203

204204
const bundleDtsIfNeeded = async () => {

0 commit comments

Comments
 (0)