CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.6.21-dev (changelog, source)
Search

Member predicate TypeNameBindingNode::isPromiseType

Holds if the given type is a Promise object. Does not hold for unions unless all parts of the union are promises.

predicate isPromiseType()