mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-14 05:50:20 +00:00
Added polyfill method to es6-promise. (#9627)
This commit is contained in:
committed by
Masahiro Wakame
parent
6358a5c6e9
commit
3ed769caac
@@ -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>,
|
||||
|
||||
Vendored
+1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user