diff --git a/types/JSX.d.ts b/types/JSX.d.ts index 8995bee4..5c26248e 100644 --- a/types/JSX.d.ts +++ b/types/JSX.d.ts @@ -44,12 +44,12 @@ type Booleanish = boolean | 'true' | 'false' // Nullstack Elements // ---------------------------------------------------------------------- -export interface Attributes { +export interface Attributes { html?: string source?: object bind?: any debounce?: number - ref?: any + ref?: HTMLElementType | ((context?: Partial) => void) 'data-'?: any children?: NullstackNode route?: string @@ -57,9 +57,9 @@ export interface Attributes { [key: string]: any } -export interface NullstackAttributes extends Attributes {} +export interface NullstackAttributes extends Attributes {} -export interface ClassAttributes extends Attributes { +export interface ClassAttributes extends Attributes { key?: string } @@ -218,9 +218,9 @@ type WheelEventHandler = EventHandler> type DetailedHTMLProps, T> = E -export interface SVGProps extends SVGAttributes, ClassAttributes {} +export interface SVGProps extends SVGAttributes, ClassAttributes {} -export interface DOMAttributes extends Attributes { +export interface DOMAttributes extends Attributes { // Focus Events onfocus?: FocusEventHandler onblur?: FocusEventHandler @@ -1243,8 +1243,8 @@ declare global { namespace JSX { type Element = NullstackNode - type IntrinsicAttributes = NullstackAttributes - type IntrinsicClassAttributes = ClassAttributes + type IntrinsicAttributes = NullstackAttributes + type IntrinsicClassAttributes = ClassAttributes interface AllElements { // HTML