diff --git a/typescript/shims-tsx.ts b/typescript/shims-tsx.ts index a8ad8e6ac6..57f43e8709 100644 --- a/typescript/shims-tsx.ts +++ b/typescript/shims-tsx.ts @@ -1,8 +1,8 @@ declare const React: any; interface UIProps { - width: number; - height: number; + width: number | string; + height: number | string; top: number; left: number; bottom: number; @@ -14,9 +14,29 @@ interface UIProps { } interface ElementClassProps extends UIProps { - baseCls: string; cls: string; + extraCls: string; ref: (ref: T) => void; + listeners: { + eventName: string; + action: (...args: any[]) => any; + once?: boolean; + }[]; + disabled: boolean; + invisible: boolean; + invalid: boolean; + attributes: { + [key: string]: any; + }; + css: { + [key: string]: any; + }; + tagName: string; + element: any; + + beforeRender(callback: () => void): void; + beforeInit(callback: () => void): void; + render(): any; } declare namespace JSX {