forked from Innei/Shiro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.d.ts
63 lines (52 loc) · 1.23 KB
/
global.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import type { FC, PropsWithChildren } from 'react'
declare global {
export type NextErrorProps = {
reset(): void
error: Error
}
export type NextPageParams<P extends {}, Props = {}> = PropsWithChildren<
{
params: P
} & Props
>
export type Component<P = {}> = FC<ComponentType & P>
export type ComponentType<P = {}> = {
className?: string
} & PropsWithChildren &
P
// TODO should remove in next TypeScript version
interface Document {
startViewTransition(callback?: () => void | Promise<void>): ViewTransition
}
interface ViewTransition {
finished: Promise<void>
ready: Promise<void>
updateCallbackDone: () => void
skipTransition(): void
}
}
declare module 'react' {
export interface AriaAttributes {
'data-hide-print'?: boolean
'data-event'?: string
'data-testid'?: string
}
}
export {}
declare module '@mx-space/api-client' {
export interface PostMeta {
style?: string
cover?: string
banner?: string | { type: string; message: string }
}
interface TextBaseModel extends BaseCommentIndexModel {
meta?: PostMeta
}
interface AggregateTopNote {
meta?: PostMeta
}
interface AggregateTopPost {
meta?: PostMeta
}
}
export {}