sendou.ink/lib/types.ts
2020-11-27 10:28:26 +02:00

7 lines
233 B
TypeScript

import { Ability } from "@prisma/client";
export type Unpacked<T> = T extends (infer U)[] ? U : T;
export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
export type AbilityOrUnknown = Ability | "UNKNOWN";