/** * JSX type definitions for 0x1 Framework */ // Core types for JSX support export type ComponentFunction

= (props: P & { children?: JSXChildren }) => JSXNode; export type JSXChildren = JSXNode | JSXNode[] | string | number | boolean | null | undefined; export type JSXAttributes = Partial> & { children?: JSXChildren; className?: string; style?: Partial | string; [key: string]: any; }; // JSX element structure - this was missing before! export interface JSXNode { type: string | ComponentFunction | symbol; props: any; children: any[]; key?: string | number | null; } // Event handler type export type EventHandler = (event: T) => void; // HTML attributes interface export interface HTMLAttributes { // Standard HTML attributes id?: string; className?: string; style?: Partial | string; title?: string; role?: string; tabIndex?: number; // Event handlers onClick?: EventHandler; onChange?: EventHandler; onInput?: EventHandler; onSubmit?: EventHandler; onFocus?: EventHandler; onBlur?: EventHandler; // Data attributes [key: `data-${string}`]: any; // Allow any other attributes [key: string]: any; } export interface ElementAttributesProperty<_T = any> { // Add any necessary properties here }