18 lines
645 B
TypeScript
18 lines
645 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
declare module '*.vue' {
|
|
import type { DefineComponent } from 'vue';
|
|
const component: DefineComponent<Record<string, unknown>, Record<string, unknown>, unknown>;
|
|
export default component;
|
|
}
|
|
|
|
// vue3-apexcharts registers <apexchart> globally via app.use() (main.ts); this
|
|
// lets template type-checking (vue-tsc) resolve the tag instead of erroring
|
|
// on an unknown component.
|
|
import type { VueApexChartsComponentProps } from 'vue3-apexcharts';
|
|
declare module '@vue/runtime-core' {
|
|
export interface GlobalComponents {
|
|
apexchart: import('vue').DefineComponent<VueApexChartsComponentProps>;
|
|
}
|
|
}
|