xaa
    Preparing search index...

    Type Alias MapFunction<T, O>

    MapFunction: (
        value: Awaited<T>,
        index: number,
        context: MapContext<T>,
    ) => O | Promise<O>

    callback function for xaa.map to map the value.

    Type Parameters

    • T
    • O

    Type Declaration

      • (value: Awaited<T>, index: number, context: MapContext<T>): O | Promise<O>
      • Parameters

        • value: Awaited<T>

          value to map

        • index: number

          index of the value in the array

        • context: MapContext<T>

          MapContext

        Returns O | Promise<O>

        any or a promise