mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
fixing promises a plus test for compatibility with es6 promises
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
/// <reference path="../q/Q.d.ts"/>
|
||||
/// <reference path="../when/when"/>
|
||||
|
||||
var thenNum: PromisesAPlus.Thenable<number>;
|
||||
var thenStr: PromisesAPlus.Thenable<string>;
|
||||
var thenBool: PromisesAPlus.Thenable<boolean>;
|
||||
var thenNum: PromisesAPlus.Thenable<number>;
|
||||
var thenStr: PromisesAPlus.Thenable<string>;
|
||||
var thenBool: PromisesAPlus.Thenable<boolean>;
|
||||
|
||||
var impl: PromisesAPlus.PromiseImpl;
|
||||
|
||||
@@ -45,9 +45,9 @@ function testCompatibleWithRxJS() {
|
||||
}
|
||||
|
||||
function testCompatibleWithES6Promises() {
|
||||
// from spec to ES6
|
||||
var es6ThenNum: Thenable<number> = thenNum;
|
||||
var es6ThenStr: Thenable<string> = thenStr;
|
||||
// define ES6 thenables
|
||||
var es6ThenNum: Thenable<number>;
|
||||
var es6ThenStr: Thenable<string>;
|
||||
|
||||
// from ES6 to spec
|
||||
thenNum = es6ThenNum;
|
||||
|
||||
Reference in New Issue
Block a user