Skip to content

KeyOf

type KeyOf<T> = T extends object ? (keyof T)[] : [];

The keys of a type, as an array.

T