Skip to content

Commit

Permalink
refactor: switch to transform declaration code via ast tree (#304)
Browse files Browse the repository at this point in the history
* wip: create ast parser

* feat: alias

* chore: update

* test: update

* chore: update

* chore: update
  • Loading branch information
qmhc committed Mar 13, 2024
1 parent 8c245ba commit 2c90382
Show file tree
Hide file tree
Showing 8 changed files with 371 additions and 267 deletions.
5 changes: 5 additions & 0 deletions examples/vue/src/index.ts
Expand Up @@ -21,6 +21,11 @@ export { default as App } from './App.vue'
export { default as Setup } from '@/components/Setup.vue'
export { Decorator } from './decorator'

export const user: import('@/src/types').User = {
id: '',
name: ''
}

export type { User } from './types'
export type { DtsType } from './dts-types'

Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -63,6 +63,7 @@
"@vue/language-core": "^1.8.26",
"debug": "^4.3.4",
"kolorist": "^1.8.0",
"magic-string": "^0.30.7",
"vue-tsc": "^1.8.26"
},
"devDependencies": {
Expand Down
99 changes: 48 additions & 51 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2c90382

Please sign in to comment.