@servicenow/sdk - v4.4.1
    Preparing search index...

    Interface TransformationResult<T>

    interface TransformationResult<T extends tsc.Node> {
        diagnostics?: tsc.DiagnosticWithLocation[];
        transformed: T[];
        dispose(): void;
        emitNodeWithNotification(
            hint: tsc.EmitHint,
            node: tsc.Node,
            emitCallback: (hint: tsc.EmitHint, node: tsc.Node) => void,
        ): void;
        isEmitNotificationEnabled?(node: tsc.Node): boolean;
        substituteNode(hint: tsc.EmitHint, node: tsc.Node): tsc.Node;
    }

    Type Parameters

    Index

    Properties

    diagnostics?: tsc.DiagnosticWithLocation[]

    Gets diagnostics for the transformation.

    transformed: T[]

    Gets the transformed source files.

    Methods

    • Clean up EmitNode entries on any parse-tree nodes.

      Returns void

    • Emits a node with possible notification.

      Parameters

      • hint: tsc.EmitHint

        A hint as to the intended usage of the node.

      • node: tsc.Node

        The node to emit.

      • emitCallback: (hint: tsc.EmitHint, node: tsc.Node) => void

        A callback used to emit the node.

      Returns void

    • Indicates if a given node needs an emit notification

      Parameters

      Returns boolean

    • Gets a substitute for a node, if one is available; otherwise, returns the original node.

      Parameters

      • hint: tsc.EmitHint

        A hint as to the intended usage of the node.

      • node: tsc.Node

        The node to substitute.

      Returns tsc.Node