UNPKG

ts-types-tools

Version:

some type tools for typescript | TS中一些方便的类型工具

10 lines (7 loc) 280 B
import type { Equal, Expect } from '@type-challenges/utils'; import type { IsEmptyObject } from '../../index'; export type Cases = [ Expect<Equal<IsEmptyObject<{}> , true>>, Expect<Equal<IsEmptyObject<{a:1}> , false>>, Expect<Equal<IsEmptyObject<object> , false>> ];