UNPKG

@zsnout/ithkuil

Version:

A set of tools which can generate and parse romanized Ithkuil text and which can generate Ithkuil script from text and JSON data.

13 lines (12 loc) 276 B
export type Result<T> = { readonly ok: true; readonly value: T; } | { readonly ok: false; readonly reason: string; }; export declare function HandleResult<T, U, V>(props: { children: Result<T>; ok(value: T): U; error(reason: string): V; }): U | V;