Type Alias: RDateTimeField
ts
type RDateTimeField = typeof RDateTimeField & ComponentPublicInstance;Type definition for the RDateTimeField 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 dateTimeFieldRef = ref<InstanceType<RDateTimeField>>();
// Component prop type in parent
interface ParentProps {
dateTimeFieldComponent: RDateTimeField;
}
// Generic component usage
const MyWrapper = <T extends RDateTimeField>(component: T) => {
// Use component with full type safety
};