CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.15-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()