Skip to content

Incorrect Typescript type #7

@o-t-w

Description

@o-t-w

Screenshot 2023-04-05 at 16 33 08

Copying the example in the docs, I am trying to use text as the child of a button. Typescript is complaining about 'WiredButton' components don't accept text as child elements. Text in ISX has the type 'string', but the expected type of 'children' export ( is ' (HTMLCollection & (string | number | boolean | returi ReactElement<any, string I JSXELementConstructor<any» | «di' ReactFragment I ReactPortal | null)) | undefined',

Is the Typescript typing wrong? Maybe this Stack Overflow answer provides a better option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions