Skip to content

Compatability with TypeScript #6

@mxro

Description

@mxro

Thanks for this library!

Just created a new project with React 18.2.0 and TypeScript 5.3.3.

Upon creating a component with the sample provided in the Readme, I get the following type error:

Type '{ children: Element; renderer: string; width: number; height: number; }' is not assignable to type 'IntrinsicAttributes & object'.
  Property 'children' does not exist on type 'IntrinsicAttributes & object'.ts(2322)

image

Is that as expected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions