@frauschert/ts-guard
Version:
ts-guard is a typescript library that provides composable type guards. Its inspired by zod but focusses only on type guards and is more lightweight.
7 lines • 301 B
TypeScript
export type Primitive = string | number | boolean | bigint;
export type UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends (x: infer R) => any ? R : never;
export type EnumLike = {
[k: string]: string | number;
[nu: number]: string;
};
//# sourceMappingURL=types.d.ts.map