-
Notifications
You must be signed in to change notification settings - Fork 227
Typescript 4.9 #2409
Typescript 4.9 #2409
Conversation
3e0ddcf
to
783a8bd
Compare
/snapit |
🫰✨ Thanks @BPScott! Your snapshots have been published to npm. Test the snapshots by updating your yarn add @shopify/[email protected] yarn add [email protected] yarn add [email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] |
/snapit |
🫰✨ Thanks @BPScott! Your snapshots have been published to npm. Test the snapshots by updating your yarn add @shopify/[email protected] yarn add [email protected] yarn add [email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] |
Trying these snapshots out over in https://buildkite.com/shopify/web-ci-builder/builds?branch=quilt-ts49-test. They're failing at the moment, hold off on reviewing till they go green. |
- Update types to account for lib.d.ts changes regarding Navigator and Window. - Propogate generic constraints
/snapit |
🫰✨ Thanks @BPScott! Your snapshots have been published to npm. Test the snapshots by updating your yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add [email protected] yarn add [email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] |
/snapit |
🫰✨ Thanks @BPScott! Your snapshots have been published to npm. Test the snapshots by updating your yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add [email protected] yarn add [email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] yarn add @shopify/[email protected] |
…ed in consuming projects
Haha, yes that's now passing in web, with some minor changes. |
Description
Updating to typescript 4.9.2.
In particular I'm excited by the 4.8 update to how file watching works, which should stop VSCode's typescript server thrashing when you switch branches. Also type-check goes from ~15 to ~12 seconds which is always nice.
See https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/
See https://devblogs.microsoft.com/typescript/announcing-typescript-4-9/
Most changes relate to [Generic constraints no longer extending from {}](https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/#unconstrained-generics-no-longer-assignable-to}. The explanation is pretty dense but the fix boils down to: "Add
extends {}
if the generic argument can be null/undefined, otherwise addextends object
or the the functionally equalextends {[key: string]: unknown}
if it's always going to be an object. See microsoft/TypeScript#49489 / microsoft/TypeScript#49119 for more info.For GraphQL stuff we want to mimic
graphql-typed-document-node
so we useextends {[key: string]: unknown}
Other changes are regarding small adjustments to Window and NavigatorConnection.