UNPKG
@voxpelli/typed-utils
Version:
latest (5.0.0)
5.0.0
4.3.0
4.2.0
4.1.0
4.0.0
3.2.1
3.2.0
3.1.0
3.0.0
2.6.0
2.5.0
2.4.4
2.4.3
2.4.2
2.4.1
2.4.0
2.3.1
2.3.0
2.2.2
2.2.1
2.2.0
2.1.0
2.0.1
2.0.0
1.10.2
1.10.1
1.10.0
1.9.0
1.8.0
1.7.0
1.6.0
1.5.0
1.4.1
1.4.0
1.3.0
1.2.0
1.1.0
1.0.0
My personal (type-enabled) utils / helpers
github.com/voxpelli/typed-utils
voxpelli/typed-utils
@voxpelli/typed-utils
/
lib
/
types
/
misc-types.d.ts
6 lines
(4 loc)
•
229 B
TypeScript
View Raw
1
2
3
4
5
6
// 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
;