chore: add type for import by eslint (#253)

This commit is contained in:
云游君 authored and GitHub committed 2021-12-16 03:29:24 +08:00
1 parent 0f56f15197
commit 475a769137
6 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
import { createI18n } from 'vue-i18n'
import { UserModule } from '~/types'
import type { UserModule } from '~/types'
// Import i18n resources
// https://vitejs.dev/guide/features.html#glob-import
+1 -1
View File
@@ -1,5 +1,5 @@
import NProgress from 'nprogress'
import { UserModule } from '~/types'
import type { UserModule } from '~/types'
export const install: UserModule = ({ isClient, router }) => {
if (isClient) {
+1 -1
View File
@@ -1,5 +1,5 @@
import { createPinia } from 'pinia'
import { UserModule } from '~/types'
import type { UserModule } from '~/types'
// Setup Pinia
// https://pinia.esm.dev/
+1 -1
View File
@@ -1,4 +1,4 @@
import { UserModule } from '~/types'
import type { UserModule } from '~/types'
// https://github.com/antfu/vite-plugin-pwa#automatic-reload-when-new-content-available
export const install: UserModule = ({ isClient, router }) => {