Function isTypeVariable

  • Test if a type is a TypeVariable.

    Parameters

    • type: Type

    Returns type is TypeVariable

    Example

    declare const type: ts.Type;

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