| Index: ui/webui/resources/js/promise_resolver.js
|
| diff --git a/ui/webui/resources/js/promise_resolver.js b/ui/webui/resources/js/promise_resolver.js
|
| index e4fedaa5d8c27cff278ccbd3804a7693aecce134..0759c955584cc18ca2808ea9ad6bd4c64f2fa49c 100644
|
| --- a/ui/webui/resources/js/promise_resolver.js
|
| +++ b/ui/webui/resources/js/promise_resolver.js
|
| @@ -16,15 +16,18 @@
|
| * resolver.resolve({hello: 'world'});
|
| */
|
|
|
| -/** @constructor */
|
| +/**
|
| + * @constructor @struct
|
| + * @template T
|
| + */
|
| function PromiseResolver() {
|
| - /** @type {!Function} */
|
| + /** @type {function(T): void} */
|
| this.resolve;
|
|
|
| - /** @type {!Function} */
|
| + /** @type {function(*=): void} */
|
| this.reject;
|
|
|
| - /** @type {!Promise} */
|
| + /** @type {!Promise<T>} */
|
| this.promise = new Promise(function(resolve, reject) {
|
| this.resolve = resolve;
|
| this.reject = reject;
|
|
|