@reactivex/ix-esnext-esm
Version:
The Interactive Extensions for JavaScript
1 lines • 897 B
Source Map (JSON)
{"version":3,"sources":["asynciterable/operators/distinctoptions.ts"],"names":[],"mappings":"","file":"distinctoptions.js","sourcesContent":["/**\n * This class holds the options for the distinct operator including a key selector and comparer.\n *\n * @export\n * @interface DistinctOptions\n * @template TSource The type of the elements in the source sequence.\n * @template TKey The type of the discriminator key computed for each element in the source sequence.\n */\nexport interface DistinctOptions<TSource, TKey = TSource> {\n /**\n * A function to compute the comparison key for each element.\n *\n * @memberof DistinctOptions\n */\n keySelector?: (value: TSource, signal?: AbortSignal) => TKey | Promise<TKey>;\n /**\n * Equality comparer for source elements.\n *\n * @memberof DistinctOptions\n */\n comparer?: (x: TKey, y: TKey) => boolean | Promise<boolean>;\n}\n"]}