mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-02 19:26:50 -05:00
10 lines
331 B
TypeScript
10 lines
331 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 Serialized<T> = {
|
|
[P in keyof T]: T[P] extends Date ? string : Serialized<T[P]>;
|
|
};
|
|
|
|
export type AbilityOrUnknown = Ability | "UNKNOWN";
|