-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Research TS development experience #23
Labels
compat: spec
Compatibility with official compiler
Milestone
Comments
Supporting imported types in |
phoenix-ru
added a commit
that referenced
this issue
Jul 24, 2024
phoenix-ru
added a commit
that referenced
this issue
Aug 20, 2024
phoenix-ru
added a commit
that referenced
this issue
Aug 23, 2024
phoenix-ru
added a commit
that referenced
this issue
Sep 2, 2024
phoenix-ru
added a commit
that referenced
this issue
Sep 28, 2024
phoenix-ru
added a commit
that referenced
this issue
Oct 14, 2024
phoenix-ru
added a commit
that referenced
this issue
Oct 27, 2024
* test(#23): add some resolveType tests and fix behaviour * chore: add test words to dict * test: add more cases and fix indexed access * test: add more test-cases * ci: try using ubuntu 24.04 to fix grcov * enh: support owner scopes * fix: support more ExtractPropType tests * enh: support namespaces * test: fix enum test * test: add tests for generics and remove `dbg!`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: