UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

14 lines (13 loc) 455 B
/** * Function parseNumber will parse number from string * * Note: [🔂] This function is idempotent. * Unlike Number.parseInt, Number.parseFloat it will never ever result in NaN * Note: it also works only with decimal numbers * * @returns parsed number * @throws {ParseError} if the value is not a number * * @public exported from `@promptbook/utils` */ export declare function parseNumber(value: string | number | null | undefined): number;