aboutsummaryrefslogtreecommitdiffstats
path: root/src/types/generics.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/types/generics.ts')
-rw-r--r--src/types/generics.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/types/generics.ts b/src/types/generics.ts
new file mode 100644
index 0000000..5377c54
--- /dev/null
+++ b/src/types/generics.ts
@@ -0,0 +1,5 @@
+export type Maybe<T> = T | undefined;
+
+export type Nullable<T> = T | null;
+
+export type DataValidator<T> = (data: T) => boolean | Promise<boolean>;