You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am still not sure how TS is used in the official compiler to generate .d.ts of .vue files. It uses defineComponent in the generated code but I want to find a balance between generating the most optimal code (i.e. omitting defineComponent) and supporting TS definitions.
I am still not sure how TS is used in the official compiler to generate
.d.ts
of.vue
files. It usesdefineComponent
in the generated code but I want to find a balance between generating the most optimal code (i.e. omittingdefineComponent
) and supporting TS definitions.Spec:
https://github.com/vuejs/core/blob/main/packages/compiler-sfc/__tests__/compileScript.spec.ts#L1393-L1424
Tasks:
defineComponent
when in TS mode;any
to some parameters and variables:__props
impl__temp
and__restore
impl (todo because no context restoration is present)defineProps
;withDefaults
defineEmits
The text was updated successfully, but these errors were encountered: