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

build(deps-dev): bump typescript to 4.7.4 #6215

Merged
merged 3 commits into from
Jul 6, 2022
Merged

Conversation

pikax
Copy link
Member

@pikax pikax commented Jul 2, 2022

No description provided.

@@ -30,7 +30,7 @@ export class ComputedRefImpl<T> {
public readonly effect: ReactiveEffect<T>

public readonly __v_isRef = true
public readonly [ReactiveFlags.IS_READONLY]: boolean
public readonly [ReactiveFlags.IS_READONLY]: boolean = false
Copy link
Member Author

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

@netlify
Copy link

netlify bot commented Jul 2, 2022

Deploy Preview for vuejs-coverage failed.

Name Link
🔨 Latest commit 8dcdb40
🔍 Latest deploy log https://app.netlify.com/sites/vuejs-coverage/deploys/62c00599043e41000833cc1a

Comment on lines +817 to 818
// @ts-expect-error types are not compatible
extend(finalCompilerOptions.compatConfig, Component.compatConfig)
Copy link
Member Author

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

@@ -128,14 +128,14 @@ function testRender(type: string, render: typeof renderToString) {
await render(
createApp(
defineComponent({
extends: {
extends: defineComponent({
Copy link
Member Author

@pikax pikax Jul 2, 2022

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

(await Promise.all(context.__teleportBuffers[key])) as SSRBuffer
await Promise.all([context.__teleportBuffers[key]])
Copy link
Member Author

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

@netlify
Copy link

netlify bot commented Jul 2, 2022

Deploy Preview for vuejs-coverage failed.

Name Link
🔨 Latest commit 5054b85
🔍 Latest deploy log https://app.netlify.com/sites/vuejs-coverage/deploys/62c0078801c1740008ccdcd8

@pikax pikax requested a review from yyx990803 July 2, 2022 09:18
@yyx990803 yyx990803 merged commit 17c50ce into main Jul 6, 2022
@yyx990803 yyx990803 deleted the update_to_typescript_4.7 branch July 6, 2022 08:27
chrislone pushed a commit to chrislone/core that referenced this pull request Feb 4, 2023
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.

2 participants