solid-js icon indicating copy to clipboard operation
solid-js copied to clipboard

Typescript: rows/columns attribute missing from <gridlayout>

Open timbasel opened this issue 2 years ago • 0 comments

The rows and column attributes (and maybe more) is missing from the type of the element.

export const App = () => {
  return (
    <gridlayout rows="*,50">
      ...
    </gridlayout>
  )
}
ERROR in ./app/app.tsx
TS2322: Type '{ children: Element[]; rows: string; }' is not assignable to type 'JSXElementAttributes<"GridLayout">'.
Property 'rows' does not exist on type 'JSXElementAttributes<"GridLayout">'. Did you mean 'row'?

Functionally everything works, only the typings are incomplete.

timbasel avatar Nov 01 '23 14:11 timbasel