nej-react-utils/common.ts
2025-06-23 10:38:10 +02:00

8 lines
174 B
TypeScript

export type Pretty<T> = {
[K in keyof T]: T[K];
};
export type Expand<T> = T extends object
? T extends infer O
? { [K in keyof O]: Expand<O[K]> }
: never
: T