Type Alias: RCustomField
ts
type RCustomField = typeof RCustomField & ComponentPublicInstance;Type definition for the RCustomField component constructor.
This type represents the component constructor itself, useful for:
- Component type annotations in parent components
- Ref type definitions when accessing component instances
- Generic component composition and higher-order component patterns
- TypeScript integration in component libraries and frameworks
Example
typescript
// Component ref typing
const customFieldRef = ref<InstanceType<RCustomField>>();
// Component prop type in parent
interface ParentProps {
customFieldComponent: RCustomField;
}
// Generic component usage
const MyWrapper = <T extends RCustomField>(component: T) => {
// Use component with full type safety
};