aboutsummaryrefslogtreecommitdiffstats
path: root/src/types/generics.ts
blob: 5377c5456a963ac108f0a8b89ac893018edbc027 (plain)
1
2
3
4
5
export type Maybe<T> = T | undefined;

export type Nullable<T> = T | null;

export type DataValidator<T> = (data: T) => boolean | Promise<boolean>;