forked from Storytel/react-redux-spinner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
28 lines (21 loc) · 761 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
import * as React from 'react';
import * as NProgress from 'multi-nprogress';
export const begin: string;
export const end: string;
export const endAll: string;
export const pendingTask: string;
interface SpinnerProps {
config: NProgressConfigureOptions;
}
export const Spinner: React.ComponentClass<SpinnerProps>;
type State = number;
interface Action {
type: string;
}
type Reducer = (state: State, action: Action) => State;
export const pendingTasksReducer: Reducer;
export interface ConfigurablePendingTasksReducerOptions {
actionKeyPath: ReadonlyArray<string>;
}
type ConfigurablePendingTasksReducer = (options: ConfigurablePendingTasksReducerOptions) => Reducer;
export const configurablePendingTasksReducer: ConfigurablePendingTasksReducer;