UNPKG

vite-garden

Version:

Vite Garden -- a part of the threed.ai family of JavaScript-friendly food-growing libraries

13 lines (10 loc) 401 B
import { App } from 'vue' import { Router, RouteRecordRaw } from 'vue-router' import { HeadClient } from '@vueuse/head' interface AppContext<HasRouter extends boolean = true> { app: App<Element> router: HasRouter extends true ? Router : undefined routes: HasRouter extends true ? RouteRecordRaw[] : undefined head: HeadClient | undefined } export type UserModule = (ctx: AppContext) => void