number-property.d-CJVxXUcb.d.ts 570 B

12345678910111213141516
  1. /**
  2. * Type describing the allowed values for a number input
  3. * @docs-private
  4. */
  5. type NumberInput = string | number | null | undefined;
  6. /** Coerces a data-bound value (typically a string) to a number. */
  7. declare function coerceNumberProperty(value: any): number;
  8. declare function coerceNumberProperty<D>(value: any, fallback: D): number | D;
  9. /**
  10. * Whether the provided value is considered a number.
  11. * @docs-private
  12. */
  13. declare function _isNumberValue(value: any): boolean;
  14. export { _isNumberValue as _, coerceNumberProperty as c };
  15. export type { NumberInput as N };