Function isUnparsedSourceText

  • Test if a node is an UnparsedSourceText.

    Parameters

    • node: Node

    Returns node is UnparsedSourceText

    Whether the given node appears to be an UnparsedSourceText.

    Deprecated

    With TypeScript v5

    Example

    declare const node: ts.Node;

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