NonObjectKeys
Category
Get Object Keys
Get union type of keys that are non-object in object type T.
Usage
ts
import type { NonObjectKeys } from '@utype/core'
type Props = {
name: string;
age: number;
breakfast: { foods: string[]; };
}
// Expect: 'name' | 'age'
type NonObjectKeysProps = NonObjectKeys<Props>