ratio-lock
Version:
A TypeScript library for managing n numbers with locked ratios. When the ratio is locked, changing one value automatically adjusts all other values to maintain their proportional relationships.
9 lines • 346 B
TypeScript
/**
* Parse and coerce a value to a number
* @param value - Value to parse
* @param fieldName - Field name for error messages
* @returns Parsed number
* @throws RatioLockError if value cannot be coerced to a number
*/
export declare function parseNumber(value: unknown, fieldName: string): number;
//# sourceMappingURL=parse-number.d.ts.map