Skip to content

Tag: ecmascript-6

Extending Promise base class typings

I am trying to extend Promise base class, with a static method and an instance method. I am having trouble with the typescript definitions. See my code below! With this code, when I try to defined Promise.timeout above, typescript gives me the error : Property timeout is a static member of type PromiseConstru…

Babel with Internet Explorer

Why isn’t this working in IE11 ? I was under the impression that Babel will automatically convert new-style code to old-style. Is there some configuration setup to be done ? Answer Babel can transform language features from newer versions of JavaScript into equivalents in older versions. It can’t …