UNPKG

@stacksjs/ts-validation

Version:

A simple TypeScript starter kit using Bun.

6 lines 181 B
/** * Convert a string to a float. * @param str The string to convert * @returns The float value if valid, NaN otherwise */ export declare function toFloat(str: string): number;