diff options
author | polwex <polwex@sortug.com> | 2025-07-16 08:51:35 +0700 |
---|---|---|
committer | polwex <polwex@sortug.com> | 2025-07-16 08:51:35 +0700 |
commit | 697ed671f394cbd07ea9751fe17f262744d99a49 (patch) | |
tree | 4becdd805b31d326a26cc4589ebeddad061611e3 /lib/types.ts | |
parent | e2e14e414de25904d791b503d2852c68b3ac9415 (diff) |
m
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>>; |