import type { App, Directive } from "vue";
import { positiveNumber, precision } from "./modules/positive-number";

const directiveList: { [key: string]: Directive } = {
    positiveNumber,
    precision
}

const directives = {
    install: function (app: App) {
        Object.keys(directiveList).forEach(key => {
            app.directive(key, directiveList[key])
        })
    }
}
export default directives