-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Upgrade to TypeScript 5 #4635
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
Upgrade to TypeScript 5 #4635
Conversation
Build successful! 🎉 |
Build successful! 🎉 |
examples/rsp-next-ts/pages/_app.tsx
Outdated
@@ -44,7 +44,7 @@ function MyApp({ Component, pageProps }: AppProps) { | |||
</ActionButton> | |||
</Flex> | |||
<View> | |||
{/* @ts-ignore */} | |||
{/* @ts-ignore - https://github.com/vercel/next.js/issues/49610 */} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a heads up but apparently bumping to TS5.1.3 fixed this issue. Fine with keeping this ignore for now anyways since it isn't a RSP issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah but then we have the lodash issue I mentioned in the description 🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahhh, so we want the project's TS version to exactly match the test app's TS version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I can try upgrading just the example to the latest yeah
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove our override for ResizeObserver as well?
https://github.com/adobe/react-spectrum/blob/main/packages/%40react-spectrum/utils/src/ResizeObserver.d.ts
Build successful! 🎉 |
## API Changes
unknown top level export { type: 'identifier', name: 'Column' } |
Upgrades to Typescript 5.0.4. 5.1 appears to have one issue breaking the lodash types, which are for some reason loaded (storybook I think). microsoft/TypeScript#53514 DefinitelyTyped/DefinitelyTyped#65674