Skip to content

typescript definition label #127

Closed
Closed
@kambing86

Description

@kambing86

related to this #125

we cannot just use JSX.Element, because all other types like string will cause error like below now

Type 'string' is not assignable to type 'Element'

according to react js doc, https://reactjs.org/docs/typechecking-with-proptypes.html

  // Anything that can be rendered: numbers, strings, elements or an array
  // (or fragment) containing these types.
  optionalNode: PropTypes.node,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions