Type alias TypedData<T>

TypedData<T>: {
    generator: (() => Promise<T[]>);
    type: PromiseToArray;
} | {
    generator: (() => Promise<T>[]);
    type: ArrayOfPromises;
} | {
    generator: (() => Promise<Promise<T>[]>);
    type: PromiseOfPromises;
}

Specifies how data is stored in the parallel enumerable.

Type Parameters

  • T

Type declaration

  • Readonly generator: (() => Promise<T[]>)
      • (): Promise<T[]>
      • Returns Promise<T[]>

  • Readonly type: PromiseToArray

Type declaration

  • Readonly generator: (() => Promise<T>[])
      • (): Promise<T>[]
      • Returns Promise<T>[]

  • Readonly type: ArrayOfPromises

Type declaration

  • Readonly generator: (() => Promise<Promise<T>[]>)
      • (): Promise<Promise<T>[]>
      • Returns Promise<Promise<T>[]>

  • Readonly type: PromiseOfPromises

Generated using TypeDoc