ts-api-utils - v3.0.0-rc.1
    Preparing search index...

    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.

      declare const node: ts.Node;

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