Skip to content

Commit

Permalink
fix: 修复类型
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed Dec 14, 2023
1 parent 2aba38a commit 3330d9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fighting-design/_utils/is/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { toString } = Object.prototype
* @returns { boolean } 这个值是否为传入的类型
*/
const is = (type: string) => {
return <T>(value: T): value is T => {
return (value: unknown): boolean => {
return toString.call(value) === `[object ${type}]`
}
}
Expand Down

0 comments on commit 3330d9d

Please sign in to comment.