Skip to content

Commit

Permalink
feat(types): support types for page and layout plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
kaivanwong committed Jan 18, 2024
1 parent 9b16671 commit 5acb3de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"vite/client",
"vitest",
"cypress",
"@intlify/unplugin-vue-i18n/messages"
"@intlify/unplugin-vue-i18n/messages",
"vite-plugin-vue-layouts/client"
],
"allowJs": true,
"strict": true,
Expand Down
1 change: 0 additions & 1 deletion types/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ declare module 'vue' {
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
TheButton: typeof import('./../src/components/TheButton.vue')['default']
TodoButton: typeof import('./../src/components/TodoButton.vue')['default']
}
}
1 change: 1 addition & 0 deletions types/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/// <reference types="vite/client" />
/// <reference types="vite-plugin-pages/client" />

interface ImportMetaEnv {
readonly VITE_ENV_MODE: string
Expand Down

0 comments on commit 5acb3de

Please sign in to comment.