typelab / assertions / IsObject
type IsObject<T> = _IsTrue<IfObject<T, true, false>>;Checks if a given type T is an object type.
| Type Parameter | Description |
|---|---|
|
|
The type to be checked. |
true if T is an object type, false otherwise.
type Valid = IsObject<[]>; // true
type Invalid = IsObject<string>; // false