Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default class component props type from object to Record #1676

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MaijaHeiskanen
Copy link
Contributor

Change default class component props type from object to Record<string, any> to allow giving a JS component props in a TS file. Earlier the props type was {} which worked fine I guess. Now in version 9 it was changed to object, which started to cause problems described in issue #1675. Changing the prop type to Record<string, any> seemed to solve the problems. Probably worth while to check that it des not suppress too much type checking where it is wanted.

Before submitting a PR please:

  • Include tests for the functionality you are adding! See CONTRIBUTING.md for details how to run tests.
  • Run npm run build and check that the build succeeds.
  • Ensure that the PR hasn't been submitted before.

PR Template

Objective

This PR fixes issue #1675

Closes Issue

It closes Issue #1675

…g, any> to allow giving a JS component props in a TS file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant