forked from DefinitelyTyped/DefinitelyTyped
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
85 lines (70 loc) · 1.94 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
/// <reference types="angular" />
declare var _: string;
export = _;
import * as angular from "angular";
declare module "angular" {
export namespace loadingBar {
interface ILoadingBarProvider {
/**
* Turn the spinner on or off
*/
includeSpinner?: boolean | undefined;
/**
* Turn the loading bar on or off
*/
includeBar?: boolean | undefined;
/**
* HTML template
*/
spinnerTemplate?: string | undefined;
/**
* Loading bar template
*/
loadingBarTemplate?: string | undefined;
/**
* Latency Threshold
*/
latencyThreshold?: number | undefined;
/**
* HTML element selector of parent
*/
parentSelector?: string | undefined;
/**
* Starting size
*/
startSize?: number | undefined;
/**
* Give illusion that there's always progress
*/
autoIncrement?: boolean | undefined;
/**
* Broadcast the start event
*/
start(): void;
/**
* Set the percentage completed
* @param {number} n - number between 0 and 1
*/
set(n: number): void;
/**
* Get the percentage completed
* @returns {number}
*/
status(): number;
/**
* Increment the loading bar
*/
inc(): void;
/**
* Complete the loading bar
*/
complete(): void;
}
}
interface IRequestShortcutConfig {
/**
* Indicates that the loading bar should be hidden.
*/
ignoreLoadingBar?: boolean | undefined;
}
}