Skip to content

Commit b4061d9

Browse files
committed
refactor: Move type files to src/types (#126)
1 parent 03c6045 commit b4061d9

File tree

8 files changed

+11
-14
lines changed

8 files changed

+11
-14
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ members of the project's leadership.
6969
## Attribution
7070

7171
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
72-
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
available at <https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>
7373

7474
[homepage]: https://www.contributor-covenant.org
7575

7676
For answers to common questions about this code of conduct, see
77-
https://www.contributor-covenant.org/faq
77+
<https://www.contributor-covenant.org/faq>

build/vite/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function createVitePlugins() {
2222
VueRouter({
2323
extensions: ['.vue'],
2424
routesFolder: 'src/pages',
25-
dts: 'src/typed-router.d.ts',
25+
dts: 'src/types/typed-router.d.ts',
2626
}),
2727

2828
vue(),
@@ -38,7 +38,7 @@ export function createVitePlugins() {
3838
extensions: ['vue'],
3939
resolvers: [VantResolver()],
4040
include: [/\.vue$/, /\.vue\?vue/],
41-
dts: 'src/components.d.ts',
41+
dts: 'src/types/components.d.ts',
4242
}),
4343

4444
// https://github.com/antfu/unplugin-auto-import
@@ -60,7 +60,7 @@ export function createVitePlugins() {
6060
},
6161
unheadVueComposablesImports,
6262
],
63-
dts: 'src/auto-imports.d.ts',
63+
dts: 'src/types/auto-imports.d.ts',
6464
dirs: [
6565
'src/composables',
6666
],

src/auto-imports.d.ts renamed to src/types/auto-imports.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ declare global {
4949
const inject: typeof import('vue')['inject']
5050
const injectHead: typeof import('@unhead/vue')['injectHead']
5151
const injectLocal: typeof import('@vueuse/core')['injectLocal']
52-
const isDark: typeof import('./composables/dark')['isDark']
52+
const isDark: typeof import('../composables/dark')['isDark']
5353
const isDefined: typeof import('@vueuse/core')['isDefined']
5454
const isProxy: typeof import('vue')['isProxy']
5555
const isReactive: typeof import('vue')['isReactive']
@@ -80,7 +80,7 @@ declare global {
8080
const onUnmounted: typeof import('vue')['onUnmounted']
8181
const onUpdated: typeof import('vue')['onUpdated']
8282
const pausableWatch: typeof import('@vueuse/core')['pausableWatch']
83-
const preferredDark: typeof import('./composables/dark')['preferredDark']
83+
const preferredDark: typeof import('../composables/dark')['preferredDark']
8484
const provide: typeof import('vue')['provide']
8585
const provideLocal: typeof import('@vueuse/core')['provideLocal']
8686
const reactify: typeof import('@vueuse/core')['reactify']
@@ -114,7 +114,7 @@ declare global {
114114
const toRef: typeof import('vue')['toRef']
115115
const toRefs: typeof import('vue')['toRefs']
116116
const toValue: typeof import('vue')['toValue']
117-
const toggleDark: typeof import('./composables/dark')['toggleDark']
117+
const toggleDark: typeof import('../composables/dark')['toggleDark']
118118
const triggerRef: typeof import('vue')['triggerRef']
119119
const tryOnBeforeMount: typeof import('@vueuse/core')['tryOnBeforeMount']
120120
const tryOnBeforeUnmount: typeof import('@vueuse/core')['tryOnBeforeUnmount']

src/components.d.ts renamed to src/types/components.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ export {}
77
/* prettier-ignore */
88
declare module 'vue' {
99
export interface GlobalComponents {
10-
Chart: typeof import('./components/Chart/index.vue')['default']
11-
NavBar: typeof import('./components/NavBar.vue')['default']
10+
Chart: typeof import('./../components/Chart/index.vue')['default']
11+
NavBar: typeof import('./../components/NavBar.vue')['default']
1212
RouterLink: typeof import('vue-router')['RouterLink']
1313
RouterView: typeof import('vue-router')['RouterView']
14-
TabBar: typeof import('./components/TabBar.vue')['default']
14+
TabBar: typeof import('./../components/TabBar.vue')['default']
1515
VanButton: typeof import('vant/es')['Button']
1616
VanCell: typeof import('vant/es')['Cell']
1717
VanCellGroup: typeof import('vant/es')['CellGroup']
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/typing.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)