UNPKG

money-ts

Version:

TypeScript library for type-safe and lossless encoding and manipulation of world currencies and precious metals

4 lines (3 loc) 211 B
import { Type, mixed } from 'io-ts'; import { Discrete } from '../Discrete'; export declare const getDiscrete: <D extends string, U extends string>(dimension: D, unit: U) => Type<Discrete<D, U>, string, mixed>;