Interface DistinctOptions<T, K>

Options for the distinct transformer.

interface DistinctOptions<T, K> {
    flushes?: ReadableStream<unknown>;
    ignoreFlushErrors?: boolean;
    selector?: ((value) => K);
}

Type Parameters

  • T

  • K

Hierarchy (view full)

Properties

flushes?: ReadableStream<unknown>
ignoreFlushErrors?: boolean

By default an error in the flushes stream will be sent by the transformer.

selector?: ((value) => K)

Type declaration

    • (value): K
    • Parameters

      • value: T

      Returns K

Generated using TypeDoc