Function isDeclareKeyword

  • Test if a node is a DeclareKeyword.

    Parameters

    • node: Node

    Returns node is DeclareKeyword

    Whether the given node appears to be a DeclareKeyword.

    Example

    declare const node: ts.Node;

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