Files
starface-outlook-sync-addin/node_modules/@jsonjoy.com/fs-core/lib/result.d.ts
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

12 lines
249 B
TypeScript

export interface Ok<T> {
ok: true;
value: T;
}
export interface Err<E> {
ok: false;
err: E;
}
export type Result<T, E> = Ok<T> | Err<E>;
export declare function Ok<T>(value: T): Ok<T>;
export declare function Err<E>(err: E): Err<E>;