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
The typing for validate is function validate(value: string, format: Format | string): boolean; but according to the code comments in validating.js#L244 the expected types are string | number | Numbro.
This makes validating both the input and format like validate(325, { mantissa: 2 }) impossible because you get a typescript error.
Am I misunderstanding how validate should be used?
The text was updated successfully, but these errors were encountered:
The typing for
validate
isfunction validate(value: string, format: Format | string): boolean;
but according to the code comments in validating.js#L244 the expected types arestring | number | Numbro
.This makes validating both the input and format like
validate(325, { mantissa: 2 })
impossible because you get a typescript error.Am I misunderstanding how
validate
should be used?The text was updated successfully, but these errors were encountered: