Added polyfill method to es6-promise. (#9627)

This commit is contained in:
Kaur Kuut
2016-06-14 00:54:21 +09:00
committed by Masahiro Wakame
parent 6358a5c6e9
commit 3ed769caac
2 changed files with 2 additions and 0 deletions
@@ -1,6 +1,7 @@
/// <reference path="es6-promise.d.ts" />
import rsvp = require('es6-promise');
rsvp.polyfill(); // Test for polyfill method existence
var Promise = rsvp.Promise;
var promiseString: Promise<string>,
+1
View File
@@ -79,6 +79,7 @@ declare module 'es6-promise' {
var foo: typeof Promise; // Temp variable to reference Promise in local context
namespace rsvp {
export var Promise: typeof foo;
export function polyfill(): void;
}
export = rsvp;
}