FunctionFields<T>:{ [K in keyof T]: T[K] extends ((...args) => any) ? K : never }[keyof T]
Identifies all properties of a given entity type T that are functions. This type is useful for filtering out or working with only the function fields of an entity.
Type Parameters
T
The type of the entity being examined.
Returns
The names of the function properties as strings if any exist; otherwise, the result is never.
Identifies all properties of a given entity type
T
that are functions. This type is useful for filtering out or working with only the function fields of an entity.