solid icon indicating copy to clipboard operation
solid copied to clipboard

Optional type property `children` for <For> and <Show> is typed as required.

Open Xzensi opened this issue 1 month ago • 0 comments

Describe the bug

Typescript type explicitly defines property children as required when it's not required.

Illegal according to the typescript type:

<For each={props.groups}>
  {group => (

Has to be:

<For
  each={props.groups}
  children={(group: AddressTotalsGroup): JSX.Element => (
Image

and

Image

Your Example Website or App

n/a

Steps to Reproduce the Bug or Issue

.

Expected behavior

Type linter not erroring on valid component property constraints.

Screenshots or Videos

No response

Platform

n/a

Additional context

No response

Xzensi avatar Nov 20 '25 14:11 Xzensi