Function isAssertsKeyword

  • Test if a node is an AssertsKeyword.

    Parameters

    • node: Node

    Returns node is AssertsKeyword

    Whether the given node appears to be an AssertsKeyword.

    Deprecated

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

    Example

    declare const node: ts.Node;

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