Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
refactor: 补充mergeDependencyList类型提示
Browse files Browse the repository at this point in the history
  • Loading branch information
idler8 committed Mar 2, 2023
1 parent a76b094 commit 1700026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/form-react/src/FKeys/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export type Keys = Key[] | Key;
export function transformKeys(keys?: Keys) {
return keys ? (keys instanceof Array ? keys : [keys]) : [];
}
export function mergeDependencyList(keys, ...deps: any[]) {
export function mergeDependencyList(keys?: Keys, ...deps: any[]) {
return keys
? keys instanceof Array
? [...keys, ...deps]
Expand Down

0 comments on commit 1700026

Please sign in to comment.