Function isTypeParameter

  • Test if a type is a TypeParameter.

    Parameters

    • type: Type

    Returns type is TypeParameter

    Example

    declare const type: ts.Type;

    if (isTypeParameter(type)) {
    // ...
    }