UNPKG

money-lib

Version:

TypeScript library to work with money

5 lines (4 loc) 444 B
import type { Money } from "../types"; import type { ChainedMoneyV2, MoneyV2 } from "./types"; export declare const isMoneyChain: <CC extends string, CS extends string>(m: any) => m is ChainedMoneyV2<CC, CS>; export declare const parseMoneyInput: <CC extends string, CS extends string>(input?: MoneyV2<CC, CS, `${CC}` | ` ${CC}` | `${CC} ` | ` ${CC} `, `${CS}` | ` ${CS}` | `${CS} ` | ` ${CS} `> | ChainedMoneyV2<CC, CS> | undefined) => Money;