prorm API Reference
    Preparing search index...

    Class MapTransform<T, R>

    Transform stream that maps each record through a transform function Supports both synchronous and asynchronous transform functions

    Type Parameters

    • T = any
    • R = any

    Hierarchy

    • Transform
      • MapTransform
    Index
    • Transform a chunk (record)

      Parameters

      • record: T
      • encoding: string
      • callback: (error?: Error | null, data?: R) => void

      Returns Promise<void>