Function isPublicKeyword

  • Test if a node is a PublicKeyword.

    Parameters

    • node: Node

    Returns node is PublicKeyword

    Whether the given node appears to be a PublicKeyword.

    Example

    declare const node: ts.Node;

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