-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenv.d.ts
35 lines (31 loc) · 964 Bytes
/
env.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import type { NavGroupType, NavItem } from '@thecodeorigin/nuxt/@layouts/types'
import type { selectSysUserSchema } from '@thecodeorigin/nuxt/schemas'
import type { Actions, Subjects } from '@thecodeorigin/nuxt/utils/casl'
import type { Page } from 'puppeteer'
import type { RouteLocationRaw } from 'vue-router'
import type { z } from 'zod'
declare module 'vue-router' {
interface RouteMeta {
action?: Actions
subject?: Subjects
sidebar?: (NavItem & {
group: NavGroupType
})
layoutWrapperClasses?: string
navActiveLink?: RouteLocationRaw
layout?: 'blank' | 'default'
unauthenticatedOnly?: boolean
public?: boolean
}
}
declare global {
// eslint-disable-next-line vars-on-top
var $page: Page
}
declare module 'nitropack' {
interface NitroRuntimeHooks {
'user:created': (data: z.infer<typeof selectSysUserSchema>) => void
'user:get': (data: z.infer<typeof selectSysUserSchema>) => void
}
}
export {}