UNPKG

@userfrosting/sprinkle-account

Version:
20 lines (19 loc) 523 B
import { App } from 'vue'; import { Router } from 'vue-router'; /** * Account Sprinkle initialization recipe. * * This recipe is responsible for running the auth check on load, setting up * the router guards and registering the checkAccess as a global properties. */ declare const _default: { install: (app: App, options: { router: Router; }) => void; }; export default _default; declare module 'vue' { interface ComponentCustomProperties { $checkAccess: (slug: string) => boolean; } }