-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.d.ts
100 lines (75 loc) · 2.41 KB
/
app.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/* eslint-disable import/no-duplicates */
/// <reference types="@stefanprobst/next-svg/types" />
type DeepNonNullable<T> = {
[K in keyof T]-?: NonNullable<T[K]>
}
type KeysAllowUndefined<T> = {
[K in keyof T]: T[K] | undefined
}
type Nullable<T> = {
[K in keyof T]?: T[K] | null | undefined
}
type Mutable<T> = {
-readonly [P in keyof T]: T[P] extends ReadonlyArray<infer U> ? Array<Mutable<U>> : Mutable<T[P]>
}
type RemoveIndexSignature<T> = {
[Key in keyof T as string extends Key ? never : Key]: T[Key]
}
type RequiredKeysAllowUndefined<T> = {
[K in keyof T]: undefined extends T[K] ? T[K] : T[K] | undefined
}
type UndefinedLeaves<T> = {
[K in keyof T]: undefined extends T[K]
? never
: T[K] extends Array<unknown>
? []
: T[K] extends object
? UndefinedLeaves<T[K]>
: undefined
}
declare module '*.mdx' {
import type { MDXContent } from 'mdx/types'
const content: MDXContent
const metadata: { title: string }
export default content
export { metadata }
}
/**
* Only necessary because TypeScript currently cannot resolve package exports from `@stefanprobst/next-svg/types`.
*/
declare module '*.svg?symbol-icon' {
import type { ReactNode, SVGProps, VFC } from 'react'
const Image: VFC<SVGProps<SVGSVGElement> & { title?: ReactNode }>
export default Image
}
/**
* Only necessary because TypeScript currently cannot resolve package exports from `@stefanprobst/next-svg/types`.
*/
declare module '*.svg?symbol-icon' {
import type { ReactNode, SVGProps, VFC } from 'react'
const Image: VFC<SVGProps<SVGSVGElement> & { title?: ReactNode }>
export default Image
}
/**
* Only necessary because TypeScript currently cannot resolve package exports from `@stefanprobst/next-svg/types`.
*/
declare module '*.svg?inline' {
import type { ReactNode, SVGProps, VFC } from 'react'
const Image: VFC<SVGProps<SVGSVGElement> & { title?: ReactNode }>
export default Image
}
/**
* Only necessary because TypeScript currently cannot resolve package exports from `@stefanprobst/next-svg/types`.
*/
declare module '*.svg?inline-icon' {
import type { ReactNode, SVGProps, VFC } from 'react'
const Image: VFC<SVGProps<SVGSVGElement> & { title?: ReactNode }>
export default Image
}
/**
* Only necessary because TypeScript currently cannot resolve package exports from `@stefanprobst/next-svg/types`.
*/
declare module '*.svg' {
const content: StaticImageData
export default content
}