vue-web-component-wrapper
Version:
A Vue 3 plugin that provides a web component wrapper with styles, seamlessly integrating with Vuex, Vue Router, Vue I18n, and supporting Tailwind CSS and Sass styles.
20 lines (16 loc) • 614 B
TypeScript
/// <reference types="vite/client" />
/// <reference types="vue/macros-global" />
declare module '*.vue' {
import type { DefineComponent } from 'vue'
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>
export default component
}
interface ImportMetaEnv extends Readonly<Record<string, string>> {
// only `string` type here to avoid hard-to-debug cast problems in your components!
readonly VITE_APP_VERSION: string
readonly VITE_APP_BUILD_EPOCH?: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}