Function isAwaitKeyword

  • Test if a node is an AwaitKeyword.

    Parameters

    • node: Node

    Returns node is AwaitKeyword

    Whether the given node appears to be an AwaitKeyword.

    Deprecated

    With TypeScript v5, in favor of typescript's isAwaitKeyword.

    Example

    declare const node: ts.Node;

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