Skip to content

Transform: TransformResult

Functions, types, and exports for Transform: TransformResult.

Page outline

Result of a transform operation

import type { TransformResult } from "@palamedes/transform"

type TransformResult = {
    /**
     * The transformed source code
     */
    code: string;
    /**
     * Whether the code was modified
     */
    hasChanged: boolean;
    /**
     * Stable compiled runtime IDs referenced by the transformed module.
     */
    compiledIds: string[];
    /**
     * Source map for the transformation.
     */
    map: SourceMap | null;
};

Properties

NameTypeRequiredDescription
codestringYesThe transformed source code
hasChangedbooleanYesWhether the code was modified
compiledIdsstring[]YesStable compiled runtime IDs referenced by the transformed module.
mapSourceMap | nullYesSource map for the transformation.

Source entry on GitHub

Last updated: November 1, 2026