Home > types > IsEmptyObject
判断 T 是否是空对象。
T
Signature:
export declare type IsEmptyObject<T> = T extends Object ? IsNever<keyof T> : false;
References: IsNever
type X = IsEmptyObject<{}> // => true