UNPKG

evil-vue

Version:

Evil vue3 writing, similar to angular writing Dependency injection

12 lines (11 loc) 387 B
import { Provider } from 'injection-js'; import { Component, ComputedOptions, MethodOptions } from 'vue'; export interface ModuleWithProviders { providers: Provider[]; vueModule: Provider; } export interface VueModuleType { providers?: Provider[]; imports?: ModuleWithProviders[] | any[]; bootstrap?: Component<any, any, any, ComputedOptions, MethodOptions> | any; }