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

Member predicate CallSignatureType::isOptionalParameter

Holds if the nth parameter is declared optional with the ? suffix or is the rest parameter.

Note that rest parameters are not considered optional in this sense.

predicate isOptionalParameter(int n)