countTypeParameters

Returns the number of type parameters that satisfies the specified predicate present in the declaration.

Return

The number of type parameters in the declaration.

Parameters

predicate

The predicate function to determine if a type parameter satisfies a condition.