Skip to content

Commit

Permalink
fix: to record
Browse files Browse the repository at this point in the history
  • Loading branch information
PopperLi committed Sep 5, 2023
1 parent e9b6141 commit 00501b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/preset-umi/src/features/tmpFiles/tmpFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ if (process.env.NODE_ENV === 'development') {

function checkDuplicatePluginKeys(arr: string[]) {
const duplicates: string[] = [];
arr.reduce<{ [k: string]: boolean }>((prev, curr) => {
arr.reduce<Record<string, boolean>>((prev, curr) => {
if (prev[curr]) {
duplicates.push(curr);
} else {
Expand Down

0 comments on commit 00501b3

Please sign in to comment.