-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.d.ts
33 lines (33 loc) · 870 Bytes
/
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
/**
* @file index.ts
* @author imcuttle
*
*/
import * as React from 'react'
import { FunctionComponent, ComponentClass } from 'react'
export type TypeLoadingWrapperProps = {
isLoading: boolean
renderLoadingDelayMs?: number
withDelayRenderFirstly?: boolean
className?: string
LoadingComponent: FunctionComponent | ComponentClass | string
}
export default class LoadingWrapper extends React.PureComponent<TypeLoadingWrapperProps> {
static defaultProps: {
isLoading: boolean
renderLoadingDelayMs: number
withDelayRenderFirstly: boolean
LoadingComponent: any
}
state: {
couldRender: boolean
}
timer: any
killTimer(): void
register(): void
updateTimer(prevProps: any, isFirst?: boolean): void
componentDidMount(): void
componentDidUpdate(prevProps: any): void
get couldRender(): boolean
render(): React.JSX.Element
}