Rebasely Beta: data may be purged

justintypescript-ultra-strict Public

Text · 8 lines · 259 B · at f30ac63

import { type Result } from "@tsus/runtime";export type AmountError = { kind: "invalid_amount"; input: string } | { kind: "too_large" };/** Returns integer cents. */export const parseAmount = (text: string): Result<number, AmountError> => {  // TODO};