Function isTrueLiteral

  • Test if a node is a TrueLiteral.

    Parameters

    • node: Node

    Returns node is TrueLiteral

    Whether the given node appears to be a TrueLiteral.

    Example

    declare const node: ts.Node;

    if (isTrueLiteral(node)) {
    // ...
    }