-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
40 lines (40 loc) · 1.08 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
import './style.less';
export interface configureOptions {
minimum?: number;
easing?: 'linear' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out';
positionUsing?: string;
speed?: number;
showSpinner?: boolean;
parent?: string;
template?: string;
}
declare class NProgressE {
static version: string;
settings: {
minimum: number;
easing: string;
positionUsing: string;
speed: number;
trickle: boolean;
trickleSpeed: number;
showSpinner: boolean;
barSelector: string;
spinnerSelector: string;
parent: string;
template: string;
};
status: number;
el: HTMLElement;
configure(options: configureOptions): NProgressE;
isStarted(): boolean;
isRendered(): boolean;
render(fromStart: boolean): HTMLElement;
remove(): void;
set(n: number): NProgressE;
start(): NProgressE;
done(force: boolean): NProgressE;
error(force: boolean): NProgressE;
inc(amount?: number): NProgressE;
}
declare const _default: NProgressE;
export default _default;