neko/src/index.ts
Miroslav Šedivý 0e3a58c519 fix lint.
2021-01-21 16:14:05 +01:00

23 lines
472 B
TypeScript

import Vue from 'vue'
import Neko from './component/main.vue'
/**
* Fügt eine "install" function hinzu
*
* Weitere Infos:
* https://vuejs.org/v2/cookbook/packaging-sfc-for-npm.html#Packaging-Components-for-npm
*/
const NekoElements = {
install(vue: typeof Vue): void {
vue.component('Neko', Neko)
},
}
if (typeof window !== 'undefined' && window.Vue) {
// @ts-ignore
window.Vue.use(NekoElements, {})
}
export { Neko }
export default NekoElements