-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathenv.d.ts
45 lines (40 loc) · 1.2 KB
/
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
36
37
38
39
40
41
42
43
44
45
import type { RouteLocationRaw } from 'vue-router'
import type { Arrayable } from '@vueuse/core'
import type { Page } from 'puppeteer'
import type { NavGroupType, NavItem } from '@base/@layouts/types'
import type { z } from 'zod'
import type { HookResult } from '@nuxt/schema'
import type { sysUserTable } from './server/db/schemas'
import type { Actions } from '~/stores/casl'
declare module 'vue-router' {
interface RouteMeta {
action?: Actions
subject?: string
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 '#app' {
interface RuntimeNuxtHooks {
'session:refresh': () => HookResult
}
}
declare module 'nitropack' {
interface NitroRuntimeHooks {
'user:created': (data: typeof sysUserTable.$inferSelect) => void
'session:cache:clear': (data: { providerAccountId: string }) => void
'log:info': (data: { message: string, data?: any }) => void
'log:error': (data: { message: string, data?: any }) => void
}
}
export {}