UNPKG

@cnamts/vue-dot

Version:

Implementation of our Design System for the French Health Insurance

12 lines (9 loc) 384 B
import { IndexedObject } from '../../types'; import { VueConstructor } from 'vue'; export type Components = IndexedObject<VueConstructor>; /** Register components in the global Vue instance */ export function registerComponents(Vue: VueConstructor, components: Components): void { Object.keys(components).forEach((name: string) => { Vue.component(name, components[name]); }); }