NonFunctionKeys
Category
Get Object Keys
Get union type of keys that are non-functions in object type T.
Usage
ts
import type { NonFunctionKeys } from '@utype/core'
type Props = {
name: string;
age: number;
setName: (name: string) => void;
}
// Expect: 'name' | 'age'
type NonFunctionKeysProps = NonFunctionKeys<Props>