-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.d.ts
259 lines (222 loc) · 6.58 KB
/
index.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
// types/react-reveal/index.d.ts
/// <reference types="node" />
"declare module 'react-reveal';"
/**
* @typedef RevealProps
*
* https://www.react-reveal.com/docs/props/
*/
interface RevealProps {
/**
* This prop is used if the revealed element in the transition group or if an element has when, in or spy props. It `true` then the initial reveal animation will be shown. Defaults to `false`. Optional.
* @property {boolean}
*/
appear?: boolean;
/**
* Sets the origin of the reveal animation to bottom. Defaults to `false`. Optional.
* @property {boolean}
*/
bottom?: boolean;
/**
* See <a href="https://www.react-reveal.com/docs/cascade/">cascade docs</a>. Defaults to `false`. Optional.
* @property {boolean}
*/
cascade?: boolean;
/**
* See <a href="https://www.react-reveal.com/docs/when/">collapse docs</a>. Defaults to `false`. Optional.
*
* https://www.react-reveal.com/docs/when/
* @property {boolean}
*/
collapse?: boolean;
/**
* @property {number}
*/
count?: number;
/**
* Delay before the start of reveal animation in milliseconds. Can be handy if several reveals are happening at approximately same time and you want to space them out a bit. Optional.
* @property {number}
*/
delay?: number;
distance?: string;
/**
* Duration of the reveal animation in milliseconds. Defaults to 1000 milliseconds. Optional.
* @property {number}
*/
duration?: number;
/**
* Enables enter animation when the revealed element is in the transition group. Defaults to `coo`. Optional.
* @property {boolean}
*/
enter?: boolean;
/**
* @property {boolean}
*/
exit?: boolean;
/**
* @property {boolean}
*/
force?: boolean;
/**
* @property {boolean}
*/
forever?: boolean;
/**
* @property {boolean}
*/
in?: boolean;
innerRef?: () => void;
/**
* Sets the origin of the reveal animation to left. Defaults to `false`. Optional.
* @property {boolean}
*/
left?: boolean;
/**
* @property {boolean}
*/
mirror?: boolean;
/**
* @property {boolean}
*/
mountOnEnter?: boolean;
onReaveal?: () => void;
/**
* @property {boolean}
*/
opposite?: boolean;
refProp?: string;
/**
* Sets the origin of the reveal animation to right. Defaults to `false`. Optional.
* @property {boolean}
*/
right?: boolean;
spy?: unknown;
/**
* Applies fadeout effect during the initial load if server side rendering is used. Defaults to `false`. Optional.
* @property {boolean}
*/
ssrFadeout?: boolean;
/**
* Forcing reveal animation even on the initial ssr loading. If enabled, this option will suppress both flickering and ssrFadeout effect. The unfortunate drawback of this option is that the revealed content will appear hidden to Googlebot and to anyone with javascript switched off. So it will makes sense for images and/or headings which are duplicated elsewhere on the page. Defaults to false. Optional.
*
* @property {boolean}
*/
ssrReveal?: boolean;
/**
* @property {number}
*/
timeout?: number;
/**
* Sets the origin of the reveal animation to top. Defaults to `false`. Optional.
* @property {boolean}
*/
top?: boolean;
/**
* @property {boolean}
*/
unmountOnExit?: boolean;
/**
* @property {number}
*/
wait?: number;
/**
* If this prop evaluates to a truthy value then the element will be revealed when scrolled into a viewport. If the value is falsy then the element will be hidden upon entering a viewport. Disables the initial reveal animation (use appear prop to reenable it). See detailed docs.This prop is `true` by default. Optional.
* @property {boolean}
*/
when?: boolean;
}
declare module 'react-reveal/Bounce' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/Fade' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/Flip' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/LightSpeed' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/Roll' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/Rotate' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/Slide' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/Zoom' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/Jump' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/Flash' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/HeadShake' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/Jello' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/Pulse' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/RubberBand' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/Shake' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/Spin' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/Swing' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/Tada' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}
declare module 'react-reveal/Wobble' {
import React from 'react';
class Animation extends React.Component<RevealProps> {}
export default Animation;
}