chore: update deps

This commit is contained in:
Anthony Fu committed 2022-04-07 05:56:24 +08:00
1 parent 5b66f9c43d
commit 972de31f29
10 files changed
+66 -65

No files matched your search

+1
View File
@@ -93,6 +93,7 @@ declare global {
const toRef: typeof import('vue')['toRef']
const toRefs: typeof import('vue')['toRefs']
const triggerRef: typeof import('vue')['triggerRef']
const tryOnBeforeMount: typeof import('@vueuse/core')['tryOnBeforeMount']
const tryOnBeforeUnmount: typeof import('@vueuse/core')['tryOnBeforeUnmount']
const tryOnMounted: typeof import('@vueuse/core')['tryOnMounted']
const tryOnScopeDispose: typeof import('@vueuse/core')['tryOnScopeDispose']
+1 -1
View File
@@ -3,7 +3,7 @@
A custom user module system. Place a `.ts` file with the following template, it will be installed automatically.
```ts
import type { UserModule } from '~/types'
import { type UserModule } from '~/types'
export const install: UserModule = ({ app, router, isClient }) => {
// do something
+1 -1
View File
@@ -1,5 +1,5 @@
import { createI18n } from 'vue-i18n'
import type { 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 type { 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 type { UserModule } from '~/types'
import { type UserModule } from '~/types'
// Setup Pinia
// https://pinia.esm.dev/
+1 -1
View File
@@ -1,4 +1,4 @@
import type { 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 }) => {
+2 -2
View File
@@ -4,13 +4,13 @@ declare interface Window {
// with vite-plugin-md, markdowns can be treat as Vue components
declare module '*.md' {
import type { DefineComponent } from 'vue'
import { type DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
declare module '*.vue' {
import type { DefineComponent } from 'vue'
import { type DefineComponent } from 'vue'
const component: DefineComponent<{}, {}, any>
export default component
}
+1 -1
View File
@@ -1,3 +1,3 @@
import type { ViteSSGContext } from 'vite-ssg'
import { type ViteSSGContext } from 'vite-ssg'
export type UserModule = (ctx: ViteSSGContext) => void