vite-vue3-lowcode3/types/shims/shims-vue.d.ts

26 lines
645 B
TypeScript

declare module '*.vue' {
import { defineComponent } from 'vue';
const component: ReturnType<typeof defineComponent>;
export default component;
}
// declare module '*.vue' {
// import * as vue from 'vue';
// export declare const render: vue.RootRenderFunction<Element | DocumentFragment>
// }
// declare module '@vue/runtime-core' {
// export interface ComponentCustomProperties {
// $http: typeof axios
// $validate: (data: object, rule: object) => boolean
// }
// }
declare type Nullable<T> = T | null;
declare type CustomizedHTMLElement<T> = HTMLElement & T;
declare type Indexable<T> = {
[key: string]: T;
};