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

    Variable isNodeFlagSetConst

    isNodeFlagSet: (node: ts.Node, flag: ts.NodeFlags) => boolean = isFlagSetOnObject

    Test if the given node has the given NodeFlags set.

    Type Declaration

      • (node: ts.Node, flag: ts.NodeFlags): boolean
      • Parameters

        • node: ts.Node
        • flag: ts.NodeFlags

        Returns boolean

    declare const node: ts.Node;

    if (isNodeFlagSet(node, ts.NodeFlags.AwaitContext)) {
    // ...
    }