Skip to content

Commit 24e2fc9

Browse files
committed
chore: fix ts def
1 parent a3abeab commit 24e2fc9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/InputNumber.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,11 @@ const InputNumber = React.forwardRef<InputNumberRef, InputNumberProps>((props, r
678678
)}
679679
</div>
680680
);
681-
});
681+
}) as (<T extends ValueType = ValueType>(
682+
props: React.PropsWithChildren<InputNumberProps<T>> & {
683+
ref?: React.Ref<HTMLInputElement>;
684+
},
685+
) => React.ReactElement) & { displayName?: string };
682686

683687
// const InputNumber = React.forwardRef<InputNumberRef, InputNumberProps>((props, ref) => {
684688
// const {

0 commit comments

Comments
 (0)