typelab / assertions / IsPropertyKey
type IsPropertyKey<T> = _IsTrue<IfPropertyKey<T, true, false>>;Checks if a given type T is a `PropertyKey` type.
| Type Parameter | Description |
|---|---|
|
|
The type to be checked. |
true if T is a `PropertyKey` type, false otherwise.
type Valid = IsPropertyKey<string>; // true
type Invalid = IsPropertyKey<bigint>; // false