import { VueConstructor } from 'vue' import FullCalendarComponent from './FullCalendar.js' /* Registers the component globally if appropriate. This modules exposes the component AND an install function. Derived from: https://vuejs.org/v2/cookbook/packaging-sfc-for-npm.html */ let installed = false // declare install function executed by Vue.use() export function install(Vue: VueConstructor) { if (!installed) { installed = true Vue.component('FullCalendar', FullCalendarComponent) } } // detect a globally availble version of Vue (eg. in browser via