UNPKG

@voxpelli/typed-utils

Version:

My personal (type-enabled) utils / helpers

6 lines (4 loc) 229 B
// Borrowed from https://github.com/sindresorhus/type-fest declare const emptyObjectSymbol: unique symbol; type EmptyObject = { [emptyObjectSymbol]?: never }; export type IsEmptyObject<T> = T extends EmptyObject ? true : false;