UNPKG

@canard/schema-form

Version:

React-based component library that renders forms based on JSON Schema with plugin system support for validators and UI components

8 lines (7 loc) 281 B
/** * Parses input value to number format. * @param value - Value to parse * @param isInteger - Whether to return integer * @returns Parsed number value or undefined if parsing is impossible */ export declare const parseNumber: (value: unknown, isInteger: boolean) => number;