Skip to content

Conversation

@pikax
Copy link
Member

@pikax pikax commented Jul 2, 2022

No description provided.


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

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

// created eagerly in parallel.
context.teleports[key] = await unrollBuffer(
(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.

3 participants