-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathnext-env.d.ts
55 lines (48 loc) · 955 Bytes
/
next-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
46
47
48
49
50
51
52
53
54
55
/// <reference types="next" />
/// <reference types="next/types/global" />
declare module 'next-mdx-remote/hydrate' {
import React, { ReactNode } from 'react'
interface ArgumentFirst {
compiledSource: {
compiledSource: string
renderedOutput: string
scope?: {}
}
renderedOutput: any
scope?: any
}
interface ArgumentsSecond {
components?: any
}
type IResult = React.ReactElement<HTMLDivElement>
export default function hydrate({ compiledSource, renderedOutput, scope = {} }: ArgumentFirst, { components }: ArgumentsSecond): IResult
}
type ElementType =
| 'a'
| 'blockquote'
| 'code'
| 'delete'
| 'em'
| 'h1'
| 'h2'
| 'h3'
| 'h4'
| 'h5'
| 'h6'
| 'hr'
| 'img'
| 'inlineCode'
| 'li'
| 'ol'
| 'p'
| 'pre'
| 'strong'
| 'sup'
| 'table'
| 'td'
| 'thematicBreak'
| 'tr'
| 'ul'
declare type ComponentsType = {
[key in ElementType]?: React.ComponentType
}