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

Remove type from export in d.ts files #1037

Merged
merged 1 commit into from
Jan 27, 2023
Merged

Conversation

ewanharris
Copy link
Contributor

📋 Changes

Removes the type from the export in the d.ts files, as in TypeScript 5.0.0 this is now a supported thing so it causes the imported values to be unusable. It seems like previous versions of TypeScript just ignored the type and would treat the import as a value.

📎 References

Fixes #1035

🎯 Testing

Can be tested by installing the nightly TS extension, enabling it per the docs and opening one of the provided samples in the linked issue, it should be flagged in the editor and then removing the export type from node_modules should unflag it

In TypeScript 5.0.0 this is now a supported thing so it causes the imported values to be unusable,
it seems like previous versions of TypeScript just ignored the type and would treat the import as
a value

Fixes #1035
@ewanharris ewanharris requested a review from a team as a code owner January 27, 2023 12:14
@vercel
Copy link

vercel bot commented Jan 27, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
nextjs-auth0 ⬜️ Ignored (Inspect) Jan 27, 2023 at 0:14AM (UTC)

@ewanharris ewanharris mentioned this pull request Jan 27, 2023
7 tasks
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.

useUser Hook reporting error
2 participants