UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

7 lines (5 loc) 162 B
type EmptyObject<T> = { [K in keyof T]?: never; }; type EmptyObjectOf<T> = EmptyObject<T> extends T ? EmptyObject<T> : never; export type { EmptyObjectOf };