Skip to content

Commit

Permalink
chore: 更健壮的类型导入
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed May 12, 2022
1 parent cb2b829 commit 75b46ad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion presets/plugins/html.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Plugin } from 'vite'
import type { Plugin } from 'vite'

export const GenerateTitle = (): Plugin => {
let title: string
Expand Down
2 changes: 1 addition & 1 deletion src/modules/i18n.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { App } from 'vue'
import type { App } from 'vue'
import { createI18n } from 'vue-i18n'

const messages = Object.fromEntries(
Expand Down
2 changes: 1 addition & 1 deletion src/modules/pinia.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { App } from 'vue'
import type { App } from 'vue'

export default (app: App) => app.use(createPinia())
2 changes: 1 addition & 1 deletion src/modules/router.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { App } from 'vue'
import type { App } from 'vue'
import fileRoutes from '~pages'
import { setupLayouts } from 'virtual:meta-layouts'
import { createRouter, createWebHistory } from 'vue-router'
Expand Down

0 comments on commit 75b46ad

Please sign in to comment.