Files
event-store/types/utilities.ts
2025-09-19 18:49:09 +02:00

10 lines
203 B
TypeScript

import type { Empty } from "./common.ts";
export type Prettify<T> = {
[K in keyof T]: T[K];
} & {};
export type ExcludeEmptyFields<T> = {
[K in keyof T as T[K] extends Empty ? never : K]: T[K];
};