You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type 'number | null' is not assignable to type 'ValueType | undefined'.
Type 'null' is not assignable to type 'ValueType | undefined'.
What is expected?
The props attribute value of a-input-number is of type ValueType is string | number. A null should be added.
期望类型增加 null ,因为 backsapce or delete 删除后 value is null ,但是他不在类型之内,会导致ts 报错
What is actually happening?
a-input-number value 的当前类型为 string | number ,但是 当你点击 backsapce or delete 清空输入框,他的有效值为 null,所以应该增加一个 null 类型, 但是他不在类型之内,会导致ts 报错