Skip to content

Commit

Permalink
fix: Export plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando Gatti committed Oct 16, 2024
1 parent cf5d36e commit bf0060f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { App, Plugin } from "vue";
import * as components from "./components/timeline";
import "./global.css";
import { App, Plugin } from 'vue';
import * as components from './components/timeline';
import './global.css';

const Timeline: Plugin = {
install(app: App, ...options: any[]) {
Object.keys(components).forEach((key) => {
const component = (components as any)[key];
if (component && typeof component === "object") {
if (component && typeof component === 'object') {
app.component(key, component);
}
});
Expand All @@ -15,4 +15,4 @@ const Timeline: Plugin = {

export { Timeline };

export * from "./components/timeline";
export * from './components/timeline';

0 comments on commit bf0060f

Please sign in to comment.