// nuxt.config.tsexportdefault{buildModules:['vite-plugin-vue-type-imports/nuxt',]} Usage // types.tsexportinterfaceUser{username:stringpassword:stringavatar?:string} importtype{User}from'~/types'defineProps<User>()<template>...</template> Known limitations Namespace imports ...
⚠️This Plugin is still in Development and there may be bugs. Use at your own risk. Install #Install Pluginnpm i -D vite-plugin-vue-type-imports // vite.config.tsimport{defineConfig}from'vite'importVuefrom'@vitejs/plugin-vue'importVueTypeImportsfrom'vite-plugin-vue-type-imports'export...
"@vue/compiler-sfc": "^3.2.20", "fast-glob": "^3.2.7", "tsconfig-paths": "^3.11.0" } "name": "vite-plugin-vue-type-imports", "version": "0.0.3", "types": "dist/index.d.ts", "license": "MIT", "author": "Jacob Clevenger <jacobrclevenger@gmail.com>", "bugs"...
Describe the bug with "verbatimModuleSyntax": true in tsconfig.json i get the following errors when using type imports from a type-only package (@types/geojson): [plugin:vite:import-analysis] Failed to resolve import "geojson" from "page...