diff options
Diffstat (limited to 'lib/types.ts')
-rw-r--r-- | lib/types.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/types.ts b/lib/types.ts new file mode 100644 index 0000000..a22e8be --- /dev/null +++ b/lib/types.ts @@ -0,0 +1,2 @@ +export type Result<T> = { ok: T } | { error: string }; +export type AsyncRes<T> = Promise<Result<T>>; |