Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-tsserver / node_modules / typescript / lib / lib.es2015.promise.d.ts
index 372966c0267e88a8067ae1b89161c3d146abf405..ef0c1df92df31a90543c9b151f09f2bc353c887c 100644 (file)
@@ -30,7 +30,7 @@ interface PromiseConstructor {
      * a resolve callback used to resolve the promise with a value or the result of another promise,\r
      * and a reject callback used to reject the promise with a provided reason or error.\r
      */\r
-    new <T>(executor: (resolve: (value?: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;\r
+    new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;\r
 \r
     /**\r
      * Creates a Promise that is resolved with an array of results when all of the provided Promises\r
@@ -133,18 +133,18 @@ interface PromiseConstructor {
      */\r
     reject<T = never>(reason?: any): Promise<T>;\r
 \r
+    /**\r
+     * Creates a new resolved promise.\r
+     * @returns A resolved promise.\r
+     */\r
+    resolve(): Promise<void>;\r
+\r
     /**\r
      * Creates a new resolved promise for the provided value.\r
      * @param value A promise.\r
      * @returns A promise whose internal state matches the provided promise.\r
      */\r
     resolve<T>(value: T | PromiseLike<T>): Promise<T>;\r
-\r
-    /**\r
-     * Creates a new resolved promise .\r
-     * @returns A resolved promise.\r
-     */\r
-    resolve(): Promise<void>;\r
 }\r
 \r
 declare var Promise: PromiseConstructor;\r