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

rename HelmetData interface to HelmetServerState #156

Merged
merged 1 commit into from
Feb 16, 2022

Conversation

michenly
Copy link
Contributor

@michenly michenly commented Feb 4, 2022

In the TypeScript file, because there is class HelmetData and interface HelmetData and the name are exactly the same.
This means we are unable to import the type for class HelmetData.
For example import type {HelmetData} from 'react-helmet-async' gives the interface type, not the class type). See it happening here and how we need to create new type to get around it.

This PR rename the interface type to make this less confusing.

@michenly
Copy link
Contributor Author

michenly commented Feb 4, 2022

cc @frandiox

@staylor staylor merged commit 7d9b23a into staylor:main Feb 16, 2022
@michenly michenly deleted the helmet-data-type branch February 16, 2022 18:51
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