Transform Function

Overview

The transform function is the core component of the export format specification. It receives a normalized item object and returns a transformed representation suitable for the target export format.

Function Signature

transform: (item: NormalizedItem) => object | null

Parameters:

  • item - Normalized item object with guaranteed structure

Returns:

  • object - Transformed data to be exported

  • null - Skip this item from export

Implementation Examples

Basic Transformation

transform: (item) => ({
  id: item.id,
  name: item.name,
  type: item.type,
})

Module Data Access

Computed Properties

Type-Specific Transformations

Last updated