diff --git a/typescript/shims-tsx.ts b/typescript/shims-tsx.ts index aa76c2e9d..9b8abdb03 100644 --- a/typescript/shims-tsx.ts +++ b/typescript/shims-tsx.ts @@ -24,7 +24,7 @@ interface AdditionalProps { } interface ElementClassProps extends UIProps { - cls: string; + cls: string | (() => string); extraCls: string; ref: (ref: T) => void; listeners: { @@ -40,7 +40,7 @@ interface ElementClassProps extends UIProps { }; css: { [key: string]: any; - }; + } | (() => any); tagName: string; element: any; $testId: string;