1 2
export type Result<T> = { ok: T } | { error: string }; export type AsyncRes<T> = Promise<Result<T>>;