Skip to content

Fix FelaRenderer TS type extending React.ComponentType#692

Merged
robinweser merged 1 commit intorobinweser:masterfrom
UberMouse:patch-3
Apr 4, 2019
Merged

Fix FelaRenderer TS type extending React.ComponentType#692
robinweser merged 1 commit intorobinweser:masterfrom
UberMouse:patch-3

Conversation

@UberMouse
Copy link
Copy Markdown
Contributor

@UberMouse UberMouse commented Mar 21, 2019

Description

ComponentType is a type and interfaces can't extend types, I assume this is supposed to be Component as that is what React classes extend. This causes a build failure for me.

Packages

List all packages that have been changed.

  • react-fela

Versioning

Patch

Checklist

Quality Assurance

You can also run yarn run check to run all 4 commands at once.

  • The code was formatted using Prettier (yarn run format)
  • The code has no linting errors (yarn run lint)
  • All tests are passing (yarn run test)
  • There are no flow-type errors (yarn run flow)

Changes

If one of the following checks doesn't make sense due to the type of PR, just check them.

  • Tests have been added/updated
  • Documentation has been added/updated
  • My changes have proper flow-types

This change is Reviewable

ComponentType is a type and interfaces can't extend types, I assume this is supposed to be Component as that is what React classes extend.
@robinweser
Copy link
Copy Markdown
Owner

Seems reasonable to me, although I don't know much about TypeScript.

@robinweser robinweser merged commit c135e66 into robinweser:master Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants