Function isBooleanLiteral

  • Test if a node is a BooleanLiteral.

    Parameters

    • node: Node

    Returns node is BooleanLiteral

    Whether the given node appears to be a BooleanLiteral.

    Example

    declare const node: ts.Node;

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