category |
---|
Get Object Keys |
Get union type of keys that are functions in object type T.
import type { FunctionKeys } from '@utype/core'
type Props = {
name: string;
setName: (name: string) => void;
getName: () => string;
}
// Expect: 'setName' | 'getName' // [!code highlight]
type FunctionKeysProps = FunctionKeys<Props>