Function isPropertyNameLiteral

  • Test if a node is a PropertyNameLiteral.

    Parameters

    • node: Node

    Returns node is PropertyNameLiteral

    Whether the given node appears to be a PropertyNameLiteral.

    Example

    declare const node: ts.Node;

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