@servicenow/sdk - v4.4.1
    Preparing search index...
    interface Printer {
        printBundle(bundle: Bundle): string;
        printFile(sourceFile: tsc.SourceFile): string;
        printList<T extends tsc.Node>(
            format: ListFormat,
            list: NodeArray<T>,
            sourceFile: tsc.SourceFile,
        ): string;
        printNode(
            hint: tsc.EmitHint,
            node: tsc.Node,
            sourceFile: tsc.SourceFile,
        ): string;
    }
    Index

    Methods

    • Prints a bundle of source files as-is, without any emit transformations.

      Parameters

      Returns string

    • Prints a source file as-is, without any emit transformations.

      Parameters

      Returns string

    • Prints a list of nodes using the given format flags

      Type Parameters

      Parameters

      Returns string

    • Print a node and its subtree as-is, without any emit transformations.

      Parameters

      • hint: tsc.EmitHint

        A value indicating the purpose of a node. This is primarily used to distinguish between an Identifier used in an expression position, versus an Identifier used as an IdentifierName as part of a declaration. For most nodes you should just pass Unspecified.

      • node: tsc.Node

        The node to print. The node and its subtree are printed as-is, without any emit transformations.

      • sourceFile: tsc.SourceFile

        A source file that provides context for the node. The source text of the file is used to emit the original source content for literals and identifiers, while the identifiers of the source file are used when generating unique names to avoid collisions.

      Returns string