Skip to content

Looser Typescript component types #189

@JonnyBurger

Description

@JonnyBurger

Issuehunt badges

I was in @jlengstorf's stream and I noticed that depending how you use Typescript components, you get a warning.

The following should be an acceptable way to define a React component and use it in a <Composition/> and it shouldn't trigger a warning, but still it should autosuggest types for defaultProps:

type Props = {};
export const MyComp = (props: Props) => { ... }

IssueHunt Summary

Backers (Total: $0.00)

Become a backer now!

Or submit a pull request to get the deposits!

Tips

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions