bluebird: Make Thenable an alias to the builtin PromiseLike.

This commit is contained in:
Andy Hanson
2017-06-16 09:02:18 -07:00
parent 04221e07e2
commit c15e214e5a
38 changed files with 186 additions and 219 deletions
+1
View File
@@ -2,6 +2,7 @@
// Project: https://github.com/joeferner/node-java
// Definitions by: Jim Lloyd <https://github.com/jimlloyd>, Kentaro Teramoto <https://github.com/hrl7>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="node" />
+1 -3
View File
@@ -1,5 +1,3 @@
///<reference types="bluebird"/>
import java = require('java');
import BluePromise = require('bluebird');
@@ -9,7 +7,7 @@ java.asyncOptions = {
promiseSuffix: 'P',
promisify: BluePromise.promisify
};
// todo: figure out why promise doesn't work here
// todo: figure out why promise doesn't work here
/* java.registerClientP((): Promise<void> => {
return BluePromise.resolve();
}); */