Skip to content

Align exported type names with React #1518

@phaux

Description

@phaux

I often copy typescript code between preact and react apps and it's slightly annoying when some types have different names :( especially when they don't have to.

Here's a list from top of my head

  • Preact.ComponentConstructorReact.ComponentClass
  • Preact.FunctionalComponentReact.FunctionComponent
  • Preact.ComponentFactoryReact.ComponentType
  • Preact.Preact{Context,Provider,Consumer}React.{Context,Provider,Consumer}

Metadata

Metadata

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