google-closure-compiler 20161024.3.0 → 20170409.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +327 -0
- package/compiler.jar +0 -0
- package/contrib/externs/angular-1.3-resource.js +6 -0
- package/contrib/externs/angular-1.3.js +4 -3
- package/contrib/externs/angular-1.4-resource.js +6 -0
- package/contrib/externs/angular-1.4.js +2 -2
- package/contrib/externs/angular-1.5-q_templated.js +19 -1
- package/contrib/externs/angular-1.5-resource.js +6 -0
- package/contrib/externs/angular-1.5.js +44 -9
- package/contrib/externs/angular-1.6-http-promise_templated.js +61 -0
- package/contrib/externs/angular-1.6-mocks.js +267 -0
- package/contrib/externs/angular-1.6-q_templated.js +194 -0
- package/contrib/externs/angular-1.6-resource.js +332 -0
- package/contrib/externs/{w3c_css.js → angular-1.6-test.js} +8 -6
- package/contrib/externs/angular-1.6.js +2646 -0
- package/contrib/externs/angular-cache-4.6.js +316 -0
- package/contrib/externs/angular-material-1.1.js +92 -33
- package/contrib/externs/angular-material.js +36 -5
- package/contrib/externs/chai-3.5.js +101 -2
- package/contrib/externs/chrome_extensions.js +267 -95
- package/contrib/externs/jasmine-2.0.js +23 -3
- package/contrib/externs/jquery-1.4.4.js +1 -1
- package/contrib/externs/jquery-1.5.js +1 -1
- package/contrib/externs/jquery-1.6.js +1 -1
- package/contrib/externs/jquery-3.0.js +2037 -0
- package/contrib/externs/jquery-3.1.js +2045 -0
- package/contrib/externs/maps/google_maps_api_v3.js +306 -263
- package/contrib/externs/maps/google_maps_api_v3_27.js +6732 -0
- package/contrib/externs/maps/google_maps_api_v3_28.js +6637 -0
- package/contrib/externs/maps/google_maps_api_v3_exp.js +41 -106
- package/contrib/externs/mocha-2.5.js +65 -14
- package/contrib/externs/polymer-1.0.js +43 -5
- package/contrib/externs/safari.js +58 -0
- package/contrib/externs/sinon-1.17.js +719 -10
- package/contrib/externs/sinon-chai-2.7.js +78 -0
- package/contrib/externs/w3c_eventsource.js +6 -17
- package/contrib/externs/web_component_tester-4.2.js +6 -0
- package/contrib/nodejs/crypto.js +6 -6
- package/lib/gulp/index.js +2 -2
- package/lib/node/closure-compiler.js +3 -1
- package/package.json +8 -9
- package/contrib/externs/jquery-1.3.2.externs.js +0 -714
- package/contrib/externs/w3c_gamepad.js +0 -91
- package/contrib/externs/w3c_midi.js +0 -293
- package/contrib/externs/w3c_pointer_events.js +0 -105
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2012 The Closure Compiler Authors.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview Externs for v1_4 ngMock angular-mocks.js.
|
|
19
|
+
* @externs
|
|
20
|
+
*
|
|
21
|
+
* TODO: Remaining Mocks:
|
|
22
|
+
* $browser
|
|
23
|
+
* $exceptionHandler
|
|
24
|
+
* $log
|
|
25
|
+
* angular.mock.TzDate
|
|
26
|
+
* angular.mock.dump
|
|
27
|
+
* $RAFDecorator
|
|
28
|
+
* $AsyncCallbackDecorator
|
|
29
|
+
* $RootElementProvider
|
|
30
|
+
* $httpBackendDecorator
|
|
31
|
+
* $RootScopeDecorator
|
|
32
|
+
* angular.mock.module
|
|
33
|
+
*/
|
|
34
|
+
|
|
35
|
+
angular.mock = {};
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
/** @constructor */
|
|
40
|
+
angular.mock.$httpBackend = function() {};
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
/** @constructor */
|
|
45
|
+
angular.mock.$httpBackend.RequestHandler = function() {};
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @param {(number|string|Object|function(string, string, Object, string):
|
|
50
|
+
* !Array.<(number|string|Object)>)} statusOrDataOrFunction
|
|
51
|
+
* @param {(string|Object)=} opt_dataOrHeaders
|
|
52
|
+
* @param {(Object|string)=} opt_headersOrStatusText
|
|
53
|
+
* @param {string=} opt_statusText
|
|
54
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
55
|
+
*/
|
|
56
|
+
angular.mock.$httpBackend.RequestHandler.prototype.respond = function(
|
|
57
|
+
statusOrDataOrFunction, opt_dataOrHeaders, opt_headersOrStatusText,
|
|
58
|
+
opt_statusText) {};
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
/** @return {!angular.mock.$httpBackend.RequestHandler} */
|
|
62
|
+
angular.mock.$httpBackend.RequestHandler.prototype.passThrough = function() {};
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* @param {string} method
|
|
67
|
+
* @param {(string|RegExp|function(string): boolean)} url
|
|
68
|
+
* @param {(string|RegExp|function(string): boolean)=} opt_data
|
|
69
|
+
* @param {(Object|function(Object): boolean)=} opt_headers
|
|
70
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
71
|
+
*/
|
|
72
|
+
angular.mock.$httpBackend.prototype.when = function(
|
|
73
|
+
method, url, opt_data, opt_headers) {};
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @param {(string|RegExp|function(string): boolean)} url
|
|
78
|
+
* @param {(Object|function(Object): boolean)=} opt_headers
|
|
79
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
80
|
+
*/
|
|
81
|
+
angular.mock.$httpBackend.prototype.whenGET = function(url, opt_headers) {};
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @param {(string|RegExp|function(string): boolean)} url
|
|
86
|
+
* @param {(Object|function(Object): boolean)=} opt_headers
|
|
87
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
88
|
+
*/
|
|
89
|
+
angular.mock.$httpBackend.prototype.whenHEAD = function(url, opt_headers) {};
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* @param {(string|RegExp|function(string): boolean)} url
|
|
94
|
+
* @param {(Object|function(Object): boolean)=} opt_headers
|
|
95
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
96
|
+
*/
|
|
97
|
+
angular.mock.$httpBackend.prototype.whenDELETE = function(url, opt_headers) {};
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @param {(string|RegExp|function(string): boolean)} url
|
|
102
|
+
* @param {(string|RegExp|function(string): boolean)=} opt_data
|
|
103
|
+
* @param {(Object|function(Object): boolean)=} opt_headers
|
|
104
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
105
|
+
*/
|
|
106
|
+
angular.mock.$httpBackend.prototype.whenPOST = function(
|
|
107
|
+
url, opt_data, opt_headers) {};
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @param {(string|RegExp|function(string): boolean)} url
|
|
112
|
+
* @param {(string|RegExp|function(string): boolean)=} opt_data
|
|
113
|
+
* @param {(Object|function(Object): boolean)=} opt_headers
|
|
114
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
115
|
+
*/
|
|
116
|
+
angular.mock.$httpBackend.prototype.whenPUT = function(
|
|
117
|
+
url, opt_data, opt_headers) {};
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @param {(string|RegExp|function(string): boolean)} url
|
|
122
|
+
* @param {(string|RegExp|function(string): boolean)=} opt_data
|
|
123
|
+
* @param {(Object|function(Object): boolean)=} opt_headers
|
|
124
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
125
|
+
*/
|
|
126
|
+
angular.mock.$httpBackend.prototype.whenPATCH = function(
|
|
127
|
+
url, opt_data, opt_headers) {};
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @param {(string|RegExp|function(string): boolean)} url
|
|
132
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
133
|
+
*/
|
|
134
|
+
angular.mock.$httpBackend.prototype.whenJSONP = function(url) {};
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @param {string} method
|
|
139
|
+
* @param {(string|RegExp|function(string): boolean)} url
|
|
140
|
+
* @param {(string|RegExp|function(string): boolean|Object)=} opt_data
|
|
141
|
+
* @param {(Object|function(Object): boolean)=} opt_headers
|
|
142
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
143
|
+
*/
|
|
144
|
+
angular.mock.$httpBackend.prototype.expect = function(
|
|
145
|
+
method, url, opt_data, opt_headers) {};
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @param {(string|RegExp|function(string): boolean)} url
|
|
150
|
+
* @param {(Object|function(Object): boolean)=} opt_headers
|
|
151
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
152
|
+
*/
|
|
153
|
+
angular.mock.$httpBackend.prototype.expectGET = function(url, opt_headers) {};
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @param {(string|RegExp|function(string): boolean)} url
|
|
158
|
+
* @param {(Object|function(Object): boolean)=} opt_headers
|
|
159
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
160
|
+
*/
|
|
161
|
+
angular.mock.$httpBackend.prototype.expectHEAD = function(url, opt_headers) {};
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @param {(string|RegExp|function(string): boolean)} url
|
|
166
|
+
* @param {(Object|function(Object): boolean)=} opt_headers
|
|
167
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
168
|
+
*/
|
|
169
|
+
angular.mock.$httpBackend.prototype.expectDELETE = function(
|
|
170
|
+
url, opt_headers) {};
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @param {(string|RegExp|function(string): boolean)} url
|
|
175
|
+
* @param {(string|RegExp|function(string): boolean|Object)=} opt_data
|
|
176
|
+
* @param {(Object|function(Object): boolean)=} opt_headers
|
|
177
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
178
|
+
*/
|
|
179
|
+
angular.mock.$httpBackend.prototype.expectPOST = function(
|
|
180
|
+
url, opt_data, opt_headers) {};
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* @param {(string|RegExp|function(string): boolean)} url
|
|
185
|
+
* @param {(string|RegExp|function(string): boolean|Object)=} opt_data
|
|
186
|
+
* @param {(Object|function(Object): boolean)=} opt_headers
|
|
187
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
188
|
+
*/
|
|
189
|
+
angular.mock.$httpBackend.prototype.expectPUT = function(
|
|
190
|
+
url, opt_data, opt_headers) {};
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @param {(string|RegExp|function(string): boolean)} url
|
|
195
|
+
* @param {(string|RegExp|function(string): boolean|Object)=} opt_data
|
|
196
|
+
* @param {(Object|function(Object): boolean)=} opt_headers
|
|
197
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
198
|
+
*/
|
|
199
|
+
angular.mock.$httpBackend.prototype.expectPATCH = function(
|
|
200
|
+
url, opt_data, opt_headers) {};
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @param {(string|RegExp|function(string): boolean)} url
|
|
205
|
+
* @return {!angular.mock.$httpBackend.RequestHandler}
|
|
206
|
+
*/
|
|
207
|
+
angular.mock.$httpBackend.prototype.expectJSONP = function(url) {};
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* @param {number=} opt_count
|
|
212
|
+
* @return {void}
|
|
213
|
+
*/
|
|
214
|
+
angular.mock.$httpBackend.prototype.flush = function(opt_count) {};
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
/** @return {void} */
|
|
218
|
+
angular.mock.$httpBackend.prototype.verifyNoOutstandingExpectation =
|
|
219
|
+
function() {};
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
/** @return {void} */
|
|
223
|
+
angular.mock.$httpBackend.prototype.verifyNoOutstandingRequest = function() {};
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
/** @return {void} */
|
|
227
|
+
angular.mock.$httpBackend.prototype.resetExpectations = function() {};
|
|
228
|
+
|
|
229
|
+
/** @constructor */
|
|
230
|
+
angular.mock.$interval = function() {};
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @param {!angular.$q.Promise} promise
|
|
234
|
+
* @return {boolean}
|
|
235
|
+
*/
|
|
236
|
+
angular.mock.$interval.prototype.cancel = function(promise) {};
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @param {number=} opt_millis
|
|
240
|
+
* @return {number}
|
|
241
|
+
*/
|
|
242
|
+
angular.mock.$interval.prototype.flush = function(opt_millis) {};
|
|
243
|
+
|
|
244
|
+
/** @constructor */
|
|
245
|
+
angular.mock.$TimeoutDecorator = function() {};
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
/** @param {number=} opt_delay */
|
|
249
|
+
angular.mock.$TimeoutDecorator.prototype.flush = function(opt_delay) {};
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
angular.mock.$TimeoutDecorator.prototype.verifyNoPendingTasks = function() {};
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
/** @constructor */
|
|
256
|
+
angular.mock.animate = function() {};
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
angular.mock.animate.prototype.flush = function() {};
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
/** @typedef {function((!Function|string), !Object, Object=): !Object} */
|
|
263
|
+
angular.mock.$controller;
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
/** @param {!Array|!Function} injectable */
|
|
267
|
+
angular.mock.inject = function(injectable) {};
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2014 The Closure Compiler Authors.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @fileoverview Externs for the $q service in Angular 1.4
|
|
19
|
+
* NOTE: Due to a JS compiler bug, any use of a templated class must occur after
|
|
20
|
+
* the class is defined. Please be careful with the ordering of the classes and
|
|
21
|
+
* functions.
|
|
22
|
+
* @see https://docs.angularjs.org/api/ng/service/$q
|
|
23
|
+
* @externs
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/******************************************************************************
|
|
27
|
+
* $q Service
|
|
28
|
+
*****************************************************************************/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @interface
|
|
32
|
+
*/
|
|
33
|
+
angular.$q = function() {};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @interface
|
|
37
|
+
* @template T
|
|
38
|
+
*/
|
|
39
|
+
angular.$q.Promise = function() {};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Apply Type Transformation Language to allow more accurate templated type
|
|
43
|
+
* definition.
|
|
44
|
+
* This is copied from <code>goog.Thenable.prototype.then</code>, with the only
|
|
45
|
+
* difference being the raw type as angular.$q.Promise instead of goog.Promise.
|
|
46
|
+
*
|
|
47
|
+
* @param {?(function(this:THIS, T): VALUE)=} opt_onFulfilled
|
|
48
|
+
* @param {?(function(?): ?)=} opt_onRejected
|
|
49
|
+
* @param {?(function(?): ?)=} opt_notifyCallback
|
|
50
|
+
* @return {RESULT}
|
|
51
|
+
* @template THIS
|
|
52
|
+
* @template VALUE
|
|
53
|
+
* @template RESULT := type('angular.$q.Promise',
|
|
54
|
+
* cond(isUnknown(VALUE), unknown(),
|
|
55
|
+
* mapunion(VALUE, (V) =>
|
|
56
|
+
* cond(isTemplatized(V) && sub(rawTypeOf(V), 'IThenable'),
|
|
57
|
+
* templateTypeOf(V, 0),
|
|
58
|
+
* cond(sub(V, 'angular.$q.Promise'),
|
|
59
|
+
* unknown(),
|
|
60
|
+
* V)))))
|
|
61
|
+
* =:
|
|
62
|
+
*/
|
|
63
|
+
angular.$q.Promise.prototype.then = function(
|
|
64
|
+
opt_onFulfilled, opt_onRejected, opt_notifyCallback) {};
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @param {?function(?)} callback
|
|
68
|
+
* @return {!angular.$q.Promise.<T>}
|
|
69
|
+
*/
|
|
70
|
+
angular.$q.Promise.prototype.catch = function(callback) {};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @param {?function(?)} callback
|
|
74
|
+
* @param {?(function(?): ?)=} opt_notifyCallback
|
|
75
|
+
* @return {!angular.$q.Promise.<T>}
|
|
76
|
+
*/
|
|
77
|
+
angular.$q.Promise.prototype.finally = function(callback, opt_notifyCallback) {
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @interface
|
|
82
|
+
* @template T
|
|
83
|
+
*/
|
|
84
|
+
angular.$q.Deferred = function() {};
|
|
85
|
+
|
|
86
|
+
/** @param {T=} opt_value */
|
|
87
|
+
angular.$q.Deferred.prototype.resolve = function(opt_value) {};
|
|
88
|
+
|
|
89
|
+
/** @param {?=} opt_reason */
|
|
90
|
+
angular.$q.Deferred.prototype.reject = function(opt_reason) {};
|
|
91
|
+
|
|
92
|
+
/** @param {?=} opt_value */
|
|
93
|
+
angular.$q.Deferred.prototype.notify = function(opt_value) {};
|
|
94
|
+
|
|
95
|
+
/** @type {!angular.$q.Promise.<T>} */
|
|
96
|
+
angular.$q.Deferred.prototype.promise;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* $q.all has different output type based on the input type.
|
|
100
|
+
* When {@code promise} is an array, the output is an array too: for each item n
|
|
101
|
+
* in the input array, the corresponding item in the returned array would be the
|
|
102
|
+
* the same type of n, or if n is a templated $q.Promise, the type of the
|
|
103
|
+
* resolve value.
|
|
104
|
+
* When {@code promise} is in form of a record, the output should be also be a
|
|
105
|
+
* record with the same properties.
|
|
106
|
+
* When {@code promise} is other forms, the returned type is an Object.
|
|
107
|
+
*
|
|
108
|
+
* @param {VALUE} promises
|
|
109
|
+
* @template VALUE
|
|
110
|
+
* @return {ALLTYPE}
|
|
111
|
+
* @template ALLTYPE := type('angular.$q.Promise',
|
|
112
|
+
* cond(isUnknown(VALUE), unknown(),
|
|
113
|
+
* mapunion(VALUE, (x) =>
|
|
114
|
+
* cond(sub(x, 'Array'),
|
|
115
|
+
* cond(isTemplatized(x) && sub(rawTypeOf(x), 'IThenable'),
|
|
116
|
+
* type('Array', templateTypeOf(x, 0)),
|
|
117
|
+
* 'Array'
|
|
118
|
+
* ),
|
|
119
|
+
* cond(isRecord(x),
|
|
120
|
+
* maprecord(record(x), (kx, vx) => record({[kx]:
|
|
121
|
+
* cond(isTemplatized(vx) && sub(rawTypeOf(vx), 'IThenable'),
|
|
122
|
+
* templateTypeOf(vx, 0),
|
|
123
|
+
* cond(sub(vx, 'angular.$q.Promise'),
|
|
124
|
+
* unknown(),
|
|
125
|
+
* vx
|
|
126
|
+
* )
|
|
127
|
+
* )
|
|
128
|
+
* })),
|
|
129
|
+
* 'Object')))))
|
|
130
|
+
* =:
|
|
131
|
+
*/
|
|
132
|
+
angular.$q.prototype.all = function(promises) {};
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @param {!Array<!angular.$q.Promise>|!Object<string,!angular.$q.Promise>}
|
|
136
|
+
* promises
|
|
137
|
+
* @return {!angular.$q.Promise}
|
|
138
|
+
*/
|
|
139
|
+
angular.$q.prototype.race = function(promises) {};
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @return {!angular.$q.Deferred}
|
|
143
|
+
*/
|
|
144
|
+
angular.$q.prototype.defer = function() {};
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @param {?=} opt_reason
|
|
148
|
+
* @return {!angular.$q.Promise}
|
|
149
|
+
*/
|
|
150
|
+
angular.$q.prototype.reject = function(opt_reason) {};
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @see "https://github.com/google/closure-compiler/commit/be3f15e58812b0843ad0ccc0bcddb5a1506d56e8"
|
|
154
|
+
* @param {VALUE=} opt_value
|
|
155
|
+
* @param {Function=} opt_successCallback
|
|
156
|
+
* @param {Function=} opt_errorCallback
|
|
157
|
+
* @param {Function=} opt_progressCallback
|
|
158
|
+
* @return {RESULT}
|
|
159
|
+
* @template VALUE
|
|
160
|
+
* @template RESULT := type('angular.$q.Promise',
|
|
161
|
+
* cond(isUnknown(VALUE),
|
|
162
|
+
* unknown(),
|
|
163
|
+
* mapunion(VALUE, (V) =>
|
|
164
|
+
* cond(isTemplatized(V) && sub(rawTypeOf(V), 'IThenable'),
|
|
165
|
+
* templateTypeOf(V, 0),
|
|
166
|
+
* cond(sub(V, 'Thenable'),
|
|
167
|
+
* unknown(),
|
|
168
|
+
* V)))))
|
|
169
|
+
* =:
|
|
170
|
+
*/
|
|
171
|
+
angular.$q.prototype.when = function(
|
|
172
|
+
opt_value, opt_successCallback, opt_errorCallback, opt_progressCallback) {};
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @see "https://github.com/google/closure-compiler/commit/be3f15e58812b0843ad0ccc0bcddb5a1506d56e8"
|
|
176
|
+
* @param {VALUE=} opt_value
|
|
177
|
+
* @param {Function=} opt_successCallback
|
|
178
|
+
* @param {Function=} opt_errorCallback
|
|
179
|
+
* @param {Function=} opt_progressCallback
|
|
180
|
+
* @return {RESULT}
|
|
181
|
+
* @template VALUE
|
|
182
|
+
* @template RESULT := type('angular.$q.Promise',
|
|
183
|
+
* cond(isUnknown(VALUE),
|
|
184
|
+
* unknown(),
|
|
185
|
+
* mapunion(VALUE, (V) =>
|
|
186
|
+
* cond(isTemplatized(V) && sub(rawTypeOf(V), 'IThenable'),
|
|
187
|
+
* templateTypeOf(V, 0),
|
|
188
|
+
* cond(sub(V, 'Thenable'),
|
|
189
|
+
* unknown(),
|
|
190
|
+
* V)))))
|
|
191
|
+
* =:
|
|
192
|
+
*/
|
|
193
|
+
angular.$q.prototype.resolve = function(
|
|
194
|
+
opt_value, opt_successCallback, opt_errorCallback, opt_progressCallback) {};
|