Function isExclamationToken

  • Test if a node is an ExclamationToken.

    Parameters

    • node: Node

    Returns node is ExclamationToken

    Whether the given node appears to be an ExclamationToken.

    Deprecated

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

    Example

    declare const node: ts.Node;

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