Rebasely Beta: data may be purged

justintypescript-ultra-strict Public

TypeScript · 11 lines · 409 B · at 9ba9e6b

import type { Option, Result } from "./index.js";export declare const fromNullable: <T>(value: T | null | undefined) => Option<T>;export declare const wrapSync: <A extends unknown[], R>(  fn: (...args: A) => R,) => (...args: A) => Result<R, Error>;export declare const wrapAsync: <A extends unknown[], R>(  fn: (...args: A) => R | Promise<R>,) => (...args: A) => Promise<Result<Awaited<R>, Error>>;