6 lines
142 B
TypeScript
6 lines
142 B
TypeScript
import type { Empty } from "./common.ts";
|
|
|
|
export type ExcludeEmptyFields<T> = {
|
|
[K in keyof T as T[K] extends Empty ? never : K]: T[K];
|
|
};
|