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

Member predicate CallSignatureType::getNumOptionalParameter

Gets the number of optional parameters, that is, parameters that are marked as optional with the ? suffix or is a rest parameter.

int getNumOptionalParameter()