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

Member predicate ModelInput::TypeModel::getASink

Gets a data-flow node that is a sink of the given type, usually because it is an argument passed to a parameter of that type.

Note that type should also be included in isTypeUsed.

This must not depend on API graphs, but ensures that an API node is generated for the sink.

Node getASink(string type)