UNPKG

415 BTypeScriptView Raw
1/**
2 * @since 0.5.0
3 */
4import * as t from 'io-ts'
5/**
6 * @since 0.5.0
7 */
8export interface NumberFromStringC extends t.Type<number, string, unknown> {}
9/**
10 * @example
11 * import { NumberFromString } from 'io-ts-types/lib/NumberFromString'
12 *
13 * NumberFromString.decode('1') // right(1)
14 * NumberFromString.decode('1.1') // right(1.1)
15 *
16 * @since 0.5.0
17 */
18export declare const NumberFromString: NumberFromStringC