diff --git a/typescript/shims-tsx.ts b/typescript/shims-tsx.ts index c30bdee66..fcf24ecf2 100644 --- a/typescript/shims-tsx.ts +++ b/typescript/shims-tsx.ts @@ -4,9 +4,9 @@ interface UIProps { width: number | string; height: number | string; top: number; - left: number; + left: number | JSX.Element; bottom: number; - right: number; + right: number | JSX.Element; rgap: number; lgap: number; tgap: number; @@ -64,7 +64,7 @@ interface ElementClassProps extends UIProps { } type Widget = import('./index').Widget; -type Props = Partial & AdditionalProps>; +type Props = Partial & AdditionalProps & Record>; declare namespace JSX { interface Element extends Props {