Skip to content

Tern & ECMAScript Promise support

angelozerr edited this page Sep 8, 2015 · 1 revision

Promise

ECMAScript 6 provides Promise object. If you select ECMAScript 6 module, Tern provides completion for this object :

ECMAScript6 Promise Completion

Tern is able to discover the type of the Promise value :

ECMAScript6 Promise Completion

You can benefit with Promise#then value completion :

Promise Then

See promise.js tests to know the other Promise features that tern can support.

Clone this wiki locally