Type Alias: ExtractPublicPropTypesFromFactory<T>
ts
type ExtractPublicPropTypesFromFactory<T> = ExtractPublicPropTypes<
ReturnType<T>
>;Extracts the public prop types from a prop factory function. Useful for obtaining the public prop interface from a factory that returns prop definitions.
Type Parameters
| Type Parameter | Description |
|---|---|
T extends (...args: any) => any | A function that returns component prop definitions |