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

Add NavigationFunctionComponent interface #6249

Merged
merged 3 commits into from
Jun 9, 2020
Merged

Add NavigationFunctionComponent interface #6249

merged 3 commits into from
Jun 9, 2020

Conversation

elizabeth-dev
Copy link
Contributor

  • Added NavigationFunctionComponent interface

This interface can be used instead of React.FunctionComponent, fixing Typescript Property 'options' does not exist on type 'FunctionComponent<{}>' error when trying to declare static options on a functional component.

@elizabeth-dev
Copy link
Contributor Author

(Commit authored with wrong email, force pushed to fix it. Sorry. https://www.youtube.com/watch?v=9ZlOhSt_qW0)

@jinshin1013
Copy link
Contributor

@guyca this looks good to me. What do you think?

@guyca guyca merged commit c56630e into wix:master Jun 9, 2020
@guyca
Copy link
Collaborator

guyca commented Jun 9, 2020

Yup, looks great! Thanks @elizabeth-dev 👍

@elizabeth-dev elizabeth-dev deleted the addFCInterface branch June 9, 2020 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants