forked from mironov/react-redux-loading-bar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
31 lines (27 loc) · 1.02 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
import { Component, CSSProperties } from 'react';
import { Middleware, Reducer, Action } from 'redux';
export interface LoadingBarContainerProps {
scope?: string
style?: CSSProperties;
className?: string;
actions?: Object;
updateTime?: number;
maxProgress?: number;
progressIncrease?: number;
showFastActions?: boolean;
}
export default class LoadingBarContainer extends Component<LoadingBarContainerProps, {}> {}
export interface LoadingBarProps extends LoadingBarContainerProps {
loading?: number;
}
export class LoadingBar extends Component<LoadingBarProps, {}> {}
export class ImmutableLoadingBar extends Component<LoadingBarContainerProps, {}> {}
export interface MiddlewareConfig {
scope?: string
promiseTypeSuffixes?: string[];
}
export function loadingBarMiddleware(config?: MiddlewareConfig): Middleware;
export const loadingBarReducer: Reducer<any>;
export function showLoading(scope?: string): Action;
export function hideLoading(scope?: string): Action;
export function resetLoading(scope?: string): Action;