Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "transform"

Index

Type aliases

MapFunction

MapFunction<T1, T2>: (item: T1) => T2

Type parameters

  • T1

  • T2

Type declaration

    • (item: T1): T2
    • Parameters

      • item: T1

      Returns T2

Predicate

Predicate<T>: (item: T) => boolean

A function used to filter items

param

the source item to decide wheter to keep

returns

true if the item should be kept

Type parameters

  • T

    the type of record passed to the function

Type declaration

    • (item: T): boolean
    • Parameters

      • item: T

      Returns boolean

Reducer

Reducer<T, A>: (item: T, accumulator: A) => A

A function that takes an element and an aggergator item and return a new aggregators state

param

the source item to aggregate

param

the prevoius step state

returns

The new aggregator state

Type parameters

  • T

    the type of record passed to the function

  • A

    the type of the aggregator object

Type declaration

    • (item: T, accumulator: A): A
    • Parameters

      • item: T
      • accumulator: A

      Returns A

SerializationFunction

SerializationFunction<T>: MapFunction<T, string>

A function that takes an element and returns a string representing it

param

the source item to serialize

returns

The string representation of the object

Type parameters

  • T

    the type of record passed to the function

Generated using TypeDoc