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

Fixup types for newer @babel/types. #707

Merged
merged 1 commit into from
Mar 4, 2021
Merged

Conversation

rwjblue
Copy link
Collaborator

@rwjblue rwjblue commented Mar 4, 2021

Since ExportNamedDeclaration's have an optional source field (see here), we have to check for both null and undefined. An update to @babel/types shows this as failing (it likely would have failed prior to @babel/[email protected] also but in 7.8.0 they made most of the types any on accident see babel/babel#11474).

Since `ExportNamedDeclaration`'s have an optional `source` field, we
have to check for both `null` and `undefined`. An update to
`@babel/types` shows this as failing (it likely would have failed prior
to @babel/[email protected] also but in 7.8.0 they made most of the types
`any` on accident).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant