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
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | The transformed source code |
hasChanged | boolean | Yes | Whether the code was modified |
compiledIds | string[] | Yes | Stable compiled runtime IDs referenced by the transformed module. |
map | SourceMap | null | Yes | Source map for the transformation. |
Last updated: November 1, 2026