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

    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.

      declare const node: ts.Node;

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