-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
build(deps-dev): bump typescript to 4.7.4 #6215
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
Conversation
|
|
||
| public readonly __v_isRef = true | ||
| public readonly [ReactiveFlags.IS_READONLY]: boolean | ||
| public readonly [ReactiveFlags.IS_READONLY]: boolean = false |
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.
Seems typescript 4.7.x is not able to recognise this variable being set on the constructor, just in case I've initialised here
❌ Deploy Preview for vuejs-coverage failed.
|
| // @ts-expect-error types are not compatible | ||
| extend(finalCompilerOptions.compatConfig, Component.compatConfig) |
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've checked the types and they are different, we could possible update the finalCompilerOptions.compatConfig to also contain the Component.compatConfig, but I wasn't sure about it
| createApp( | ||
| defineComponent({ | ||
| extends: { | ||
| extends: defineComponent({ |
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.
Typescript has hard type inferring component options, I believe we should always enforce the usage of defineComponent in this occasions
| // created eagerly in parallel. | ||
| context.teleports[key] = await unrollBuffer( | ||
| (await Promise.all(context.__teleportBuffers[key])) as SSRBuffer | ||
| await Promise.all([context.__teleportBuffers[key]]) |
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.
Can I have a review on this change please, from the type this change makes sense, but from the previous code it seems the __teleportBuffers is Record<string, Promise<buffer>[]> if that's the case we must update the typing instead of casting
❌ Deploy Preview for vuejs-coverage failed.
|
No description provided.