semantic-typescript 0.5.3 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/asynchronous/collector.d.ts +235 -0
- package/dist/asynchronous/collector.js +811 -0
- package/dist/asynchronous/semantic.d.ts +257 -0
- package/dist/asynchronous/semantic.js +1863 -0
- package/dist/factory.d.ts +79 -37
- package/dist/factory.js +534 -277
- package/dist/guard.d.ts +24 -14
- package/dist/guard.js +73 -19
- package/dist/hook.d.ts +11 -6
- package/dist/hook.js +22 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/main.js +6 -4
- package/dist/optional.d.ts +2 -2
- package/dist/symbol.d.ts +19 -10
- package/dist/symbol.js +19 -10
- package/dist/synchronous/collector.d.ts +236 -0
- package/dist/{collector.js → synchronous/collector.js} +217 -193
- package/dist/{semantic.d.ts → synchronous/semantic.d.ts} +125 -130
- package/dist/{semantic.js → synchronous/semantic.js} +465 -574
- package/dist/utility.d.ts +7 -1
- package/dist/utility.js +1 -0
- package/package.json +3 -2
- package/readme.cn.md +213 -753
- package/readme.de.md +171 -441
- package/readme.es.md +171 -436
- package/readme.fr.md +170 -443
- package/readme.jp.md +177 -439
- package/readme.kr.md +177 -433
- package/readme.md +213 -1066
- package/readme.ru.md +174 -420
- package/readme.tw.md +175 -441
- package/dist/collector.d.ts +0 -236
- package/dist/map.d.ts +0 -76
- package/dist/map.js +0 -245
- package/dist/node.d.ts +0 -182
- package/dist/node.js +0 -918
- package/dist/set.d.ts +0 -19
- package/dist/set.js +0 -65
- package/dist/tree.d.ts +0 -82
- package/dist/tree.js +0 -257
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import type { BiFunctional, BiPredicate, Functional, Predicate, Supplier, TriFunctional, TriPredicate, Consumer, BiConsumer, Comparator, AsynchronousGenerator } from "../utility";
|
|
2
|
+
export declare class AsynchronousCollector<E, A, R> {
|
|
3
|
+
protected identity: Supplier<A>;
|
|
4
|
+
protected interrupt: Predicate<E> | BiPredicate<E, bigint> | TriPredicate<E, bigint, A>;
|
|
5
|
+
protected accumulator: BiFunctional<A, E, A> | TriFunctional<A, E, bigint, A>;
|
|
6
|
+
protected finisher: Functional<A, R>;
|
|
7
|
+
protected readonly AsynchronousCollector: symbol;
|
|
8
|
+
protected constructor(identity: Supplier<A>, interrupt: Predicate<E>, accumulator: BiFunctional<A, E, A>, finisher: Functional<A, R>);
|
|
9
|
+
protected constructor(identity: Supplier<A>, interrupt: BiPredicate<E, bigint>, accumulator: BiFunctional<A, E, A>, finisher: Functional<A, R>);
|
|
10
|
+
protected constructor(identity: Supplier<A>, interrupt: Predicate<E>, accumulator: TriFunctional<A, E, bigint, A>, finisher: Functional<A, R>);
|
|
11
|
+
protected constructor(identity: Supplier<A>, interrupt: BiPredicate<E, bigint>, accumulator: TriFunctional<A, E, bigint, A>, finisher: Functional<A, R>);
|
|
12
|
+
collect(generator: AsynchronousGenerator<E>): Promise<R>;
|
|
13
|
+
collect(iterable: AsyncIterable<E>): Promise<R>;
|
|
14
|
+
collect(start: number, end: number): Promise<R>;
|
|
15
|
+
collect(start: bigint, end: bigint): Promise<R>;
|
|
16
|
+
getIdentity(): Supplier<A>;
|
|
17
|
+
getInterrupt(): Predicate<E> | BiPredicate<E, bigint> | TriPredicate<E, bigint, A>;
|
|
18
|
+
getAccumulator(): BiFunctional<A, E, A> | TriFunctional<A, E, bigint, A>;
|
|
19
|
+
getFinisher(): Functional<A, R>;
|
|
20
|
+
static full<E, A, R>(identity: Supplier<A>, accumulator: BiFunctional<A, E, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
21
|
+
static full<E, A, R>(identity: Supplier<A>, accumulator: TriFunctional<A, E, bigint, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
22
|
+
static shortable<E, A, R>(identity: Supplier<A>, interrupt: Predicate<E>, accumulator: BiFunctional<A, E, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
23
|
+
static shortable<E, A, R>(identity: Supplier<A>, interrupt: Predicate<E>, accumulator: TriFunctional<A, E, bigint, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
24
|
+
static shortable<E, A, R>(identity: Supplier<A>, interrupt: BiPredicate<E, bigint>, accumulator: BiFunctional<A, E, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
25
|
+
static shortable<E, A, R>(identity: Supplier<A>, interrupt: BiPredicate<E, bigint>, accumulator: TriFunctional<A, E, bigint, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
26
|
+
static shortable<E, A, R>(identity: Supplier<A>, interrupt: TriPredicate<E, bigint, A>, accumulator: BiFunctional<A, E, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
27
|
+
static shortable<E, A, R>(identity: Supplier<A>, interrupt: TriPredicate<E, bigint, A>, accumulator: TriFunctional<A, E, bigint, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
28
|
+
}
|
|
29
|
+
interface UseAsynchronousAnyMatch {
|
|
30
|
+
<E>(predicate: Predicate<E>): AsynchronousCollector<E, boolean, boolean>;
|
|
31
|
+
<E>(predicate: BiPredicate<E, bigint>): AsynchronousCollector<E, boolean, boolean>;
|
|
32
|
+
}
|
|
33
|
+
export declare let useAsynchronousAnyMatch: UseAsynchronousAnyMatch;
|
|
34
|
+
interface UseAsynchronousAllMatch {
|
|
35
|
+
<E>(predicate: Predicate<E>): AsynchronousCollector<E, boolean, boolean>;
|
|
36
|
+
<E>(predicate: BiPredicate<E, bigint>): AsynchronousCollector<E, boolean, boolean>;
|
|
37
|
+
}
|
|
38
|
+
export declare let useAsynchronousAllMatch: UseAsynchronousAllMatch;
|
|
39
|
+
interface UseAsynchronousCollect {
|
|
40
|
+
<E, A, R>(identity: Supplier<A>, accumulator: BiFunctional<A, E, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
41
|
+
<E, A, R>(identity: Supplier<A>, accumulator: TriFunctional<A, E, bigint, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
42
|
+
<E, A, R>(identity: Supplier<A>, accumulator: BiFunctional<A, E, A> | TriFunctional<A, E, bigint, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
43
|
+
<E, A, R>(identity: Supplier<A>, interrupt: Predicate<E>, accumulator: BiFunctional<A, E, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
44
|
+
<E, A, R>(identity: Supplier<A>, interrupt: Predicate<E>, accumulator: TriFunctional<A, E, bigint, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
45
|
+
<E, A, R>(identity: Supplier<A>, interrupt: BiPredicate<E, bigint>, accumulator: BiFunctional<A, E, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
46
|
+
<E, A, R>(identity: Supplier<A>, interrupt: BiPredicate<E, bigint>, accumulator: TriFunctional<A, E, bigint, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
47
|
+
<E, A, R>(identity: Supplier<A>, interrupt: TriPredicate<E, bigint, A>, accumulator: BiFunctional<A, E, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
48
|
+
<E, A, R>(identity: Supplier<A>, interrupt: TriPredicate<E, bigint, A>, accumulator: TriFunctional<A, E, bigint, A>, finisher: Functional<A, R>): AsynchronousCollector<E, A, R>;
|
|
49
|
+
}
|
|
50
|
+
export declare let useAsynchronousCollect: UseAsynchronousCollect;
|
|
51
|
+
export declare let useAsynchronousCount: <E = unknown>() => AsynchronousCollector<E, bigint, bigint>;
|
|
52
|
+
interface UseAsynchronousError {
|
|
53
|
+
<E = unknown>(): AsynchronousCollector<E, string, string>;
|
|
54
|
+
<E = unknown>(accumulator: BiFunctional<string, E, string>): AsynchronousCollector<E, string, string>;
|
|
55
|
+
<E = unknown>(accumulator: TriFunctional<string, E, bigint, string>): AsynchronousCollector<E, string, string>;
|
|
56
|
+
<E = unknown>(prefix: string, accumulator: BiFunctional<string, E, string>, suffix: string): AsynchronousCollector<E, string, string>;
|
|
57
|
+
<E = unknown>(prefix: string, accumulator: TriFunctional<string, E, bigint, string>, suffix: string): AsynchronousCollector<E, string, string>;
|
|
58
|
+
}
|
|
59
|
+
export declare let useAsynchronousError: UseAsynchronousError;
|
|
60
|
+
interface UseAsynchronousFindAt {
|
|
61
|
+
<E>(index: number): AsynchronousCollector<E, Array<E>, Promise<E>>;
|
|
62
|
+
<E>(index: bigint): AsynchronousCollector<E, Array<E>, Promise<E>>;
|
|
63
|
+
}
|
|
64
|
+
export declare let useAsynchronousFindAt: UseAsynchronousFindAt;
|
|
65
|
+
export declare let useAsynchronousFindFirst: <E>() => AsynchronousCollector<E, Array<E>, Promise<E>>;
|
|
66
|
+
export declare let useAsynchronousFindAny: <E>() => AsynchronousCollector<E, Array<E>, Promise<E>>;
|
|
67
|
+
export declare let useAsynchronousFindLast: <E>() => AsynchronousCollector<E, Array<E>, Promise<E>>;
|
|
68
|
+
interface UseAsynchronousFindMaximum {
|
|
69
|
+
<E>(): AsynchronousCollector<E, Promise<E>, Promise<E>>;
|
|
70
|
+
<E>(comparator: Comparator<E>): AsynchronousCollector<E, Promise<E>, Promise<E>>;
|
|
71
|
+
}
|
|
72
|
+
export declare let useAsynchronousFindMaximum: UseAsynchronousFindMaximum;
|
|
73
|
+
interface UseAsynchronousFindMinimum {
|
|
74
|
+
<E>(): AsynchronousCollector<E, Promise<E>, Promise<E>>;
|
|
75
|
+
<E>(comparator: Comparator<E>): AsynchronousCollector<E, Promise<E>, Promise<E>>;
|
|
76
|
+
}
|
|
77
|
+
export declare let useAsynchronousFindMinimum: UseAsynchronousFindMinimum;
|
|
78
|
+
interface UseAsynchronousForEach {
|
|
79
|
+
<E>(action: Consumer<E>): AsynchronousCollector<E, bigint, bigint>;
|
|
80
|
+
<E>(action: BiConsumer<E, bigint>): AsynchronousCollector<E, bigint, bigint>;
|
|
81
|
+
}
|
|
82
|
+
export declare let useAsynchronousForEach: UseAsynchronousForEach;
|
|
83
|
+
interface UseAsynchronousNonMatch {
|
|
84
|
+
<E>(predicate: Predicate<E>): AsynchronousCollector<E, boolean, boolean>;
|
|
85
|
+
<E>(predicate: BiPredicate<E, bigint>): AsynchronousCollector<E, boolean, boolean>;
|
|
86
|
+
}
|
|
87
|
+
export declare let useAsynchronousNoneMatch: UseAsynchronousNonMatch;
|
|
88
|
+
interface UseAsynchronousGroup {
|
|
89
|
+
<E, K>(classifier: Functional<E, K>): AsynchronousCollector<E, Map<K, E[]>, Map<K, E[]>>;
|
|
90
|
+
<E, K>(classifier: BiFunctional<E, bigint, K>): AsynchronousCollector<E, Map<K, E[]>, Map<K, E[]>>;
|
|
91
|
+
}
|
|
92
|
+
export declare let useAsynchronousGroup: UseAsynchronousGroup;
|
|
93
|
+
interface UseAsynchronousGroupBy {
|
|
94
|
+
<E, K>(keyExtractor: Functional<E, K>): AsynchronousCollector<E, Map<K, E[]>, Map<K, E[]>>;
|
|
95
|
+
<E, K, V>(keyExtractor: Functional<E, K>, valueExtractor: Functional<E, V>): AsynchronousCollector<E, Map<K, V[]>, Map<K, V[]>>;
|
|
96
|
+
<E, K, V>(keyExtractor: BiFunctional<E, bigint, K>, valueExtractor: BiFunctional<E, bigint, V>): AsynchronousCollector<E, Map<K, V[]>, Map<K, V[]>>;
|
|
97
|
+
}
|
|
98
|
+
export declare let useAsynchronousGroupBy: UseAsynchronousGroupBy;
|
|
99
|
+
interface UseAsynchronousJoin {
|
|
100
|
+
<E = unknown>(): AsynchronousCollector<E, string, string>;
|
|
101
|
+
<E = unknown>(delimiter: string): AsynchronousCollector<E, string, string>;
|
|
102
|
+
<E = unknown>(prefix: string, delimiter: string, suffix: string): AsynchronousCollector<E, string, string>;
|
|
103
|
+
<E = unknown>(prefiex: string, accumulator: BiFunctional<string, E, string>, suffix: string): AsynchronousCollector<E, string, string>;
|
|
104
|
+
<E = unknown>(prefiex: string, accumulator: TriFunctional<string, E, bigint, string>, suffix: string): AsynchronousCollector<E, string, string>;
|
|
105
|
+
}
|
|
106
|
+
export declare let useAsynchronousJoin: UseAsynchronousJoin;
|
|
107
|
+
interface UseAsynchronousLog {
|
|
108
|
+
<E = unknown>(): AsynchronousCollector<E, string, string>;
|
|
109
|
+
<E = unknown>(accumulator: BiFunctional<string, E, string>): AsynchronousCollector<E, string, string>;
|
|
110
|
+
<E = unknown>(accumulator: TriFunctional<string, E, bigint, string>): AsynchronousCollector<E, string, string>;
|
|
111
|
+
<E = unknown>(prefix: string, accumulator: BiFunctional<string, E, string>, suffix: string): AsynchronousCollector<E, string, string>;
|
|
112
|
+
<E = unknown>(prefix: string, accumulator: TriFunctional<string, E, bigint, string>, suffix: string): AsynchronousCollector<E, string, string>;
|
|
113
|
+
}
|
|
114
|
+
export declare let useAsynchronousLog: UseAsynchronousLog;
|
|
115
|
+
export declare let useAsynchronousPartition: <E>(count: bigint) => AsynchronousCollector<E, Array<Array<E>>, Array<Array<E>>>;
|
|
116
|
+
interface UseAsynchronousPartitionBy {
|
|
117
|
+
<E>(classifier: Functional<E, bigint>): AsynchronousCollector<E, Array<E[]>, Array<E[]>>;
|
|
118
|
+
<E>(classifier: BiFunctional<E, bigint, bigint>): AsynchronousCollector<E, Array<E[]>, Array<E[]>>;
|
|
119
|
+
}
|
|
120
|
+
export declare let useAsynchronousPartitionBy: UseAsynchronousPartitionBy;
|
|
121
|
+
interface UseAsynchronousReduce {
|
|
122
|
+
<E>(accumulator: BiFunctional<E, E, E>): AsynchronousCollector<E, Promise<E>, Promise<E>>;
|
|
123
|
+
<E>(accumulator: TriFunctional<E, E, bigint, E>): AsynchronousCollector<E, Promise<E>, Promise<E>>;
|
|
124
|
+
<E>(identity: E, accumulator: BiFunctional<E, E, E>): AsynchronousCollector<E, E, E>;
|
|
125
|
+
<E>(identity: E, accumulator: TriFunctional<E, E, bigint, E>): AsynchronousCollector<E, E, E>;
|
|
126
|
+
<E, R>(identity: R, accumulator: BiFunctional<R, E, R>, finisher: Functional<R, R>): AsynchronousCollector<E, R, R>;
|
|
127
|
+
<E, R>(identity: R, accumulator: TriFunctional<R, E, bigint, R>, finisher: Functional<R, R>): AsynchronousCollector<E, R, R>;
|
|
128
|
+
}
|
|
129
|
+
export declare let useAsynchronousReduce: UseAsynchronousReduce;
|
|
130
|
+
export declare let useAsynchronousToArray: <E>() => AsynchronousCollector<E, E[], E[]>;
|
|
131
|
+
interface UseAsynchronousToMap {
|
|
132
|
+
<E, K>(keyExtractor: Functional<E, K>): AsynchronousCollector<E, Map<K, E>, Map<K, E>>;
|
|
133
|
+
<E, K, V>(keyExtractor: Functional<E, K>, valueExtractor: Functional<E, V>): AsynchronousCollector<E, Map<K, V>, Map<K, V>>;
|
|
134
|
+
<E, K, V>(keyExtractor: BiFunctional<E, bigint, K>, valueExtractor: BiFunctional<E, bigint, V>): AsynchronousCollector<E, Map<K, V>, Map<K, V>>;
|
|
135
|
+
}
|
|
136
|
+
export declare let useAsynchronousToMap: UseAsynchronousToMap;
|
|
137
|
+
export declare let useAsynchronousToSet: <E>() => AsynchronousCollector<E, Set<E>, Set<E>>;
|
|
138
|
+
interface UseAsynchronousWrite {
|
|
139
|
+
<E, S = string>(stream: WritableStream<S>): AsynchronousCollector<E, Promise<WritableStream<S>>, Promise<WritableStream<S>>>;
|
|
140
|
+
<E, S = string>(stream: WritableStream<S>, accumulator: BiFunctional<WritableStream<S>, E, WritableStream<S>>): AsynchronousCollector<E, Promise<WritableStream<S>>, Promise<WritableStream<S>>>;
|
|
141
|
+
<E, S = string>(stream: WritableStream<S>, accumulator: TriFunctional<WritableStream<S>, E, bigint, WritableStream<S>>): AsynchronousCollector<E, Promise<WritableStream<S>>, Promise<WritableStream<S>>>;
|
|
142
|
+
}
|
|
143
|
+
export declare let useAsynchronousWrite: UseAsynchronousWrite;
|
|
144
|
+
interface UseAsynchronousNumericSummate {
|
|
145
|
+
<E>(): AsynchronousCollector<E, number, number>;
|
|
146
|
+
<E>(mapper: Functional<E, number>): AsynchronousCollector<number, number, number>;
|
|
147
|
+
}
|
|
148
|
+
export declare let useAsynchronousNumericSummate: UseAsynchronousNumericSummate;
|
|
149
|
+
interface UseAsynchronousBigIntSummate {
|
|
150
|
+
<E>(): AsynchronousCollector<E, bigint, bigint>;
|
|
151
|
+
<E>(mapper: Functional<E, bigint>): AsynchronousCollector<bigint, bigint, bigint>;
|
|
152
|
+
}
|
|
153
|
+
export declare let useAsynchronousBigIntSummate: UseAsynchronousBigIntSummate;
|
|
154
|
+
interface UseAsynchronousNumericAverage {
|
|
155
|
+
<E>(): AsynchronousCollector<E, NumericAverageAccumulator, number>;
|
|
156
|
+
<E>(mapper: Functional<E, number>): AsynchronousCollector<number, NumericAverageAccumulator, number>;
|
|
157
|
+
}
|
|
158
|
+
interface NumericAverageAccumulator {
|
|
159
|
+
summate: number;
|
|
160
|
+
count: number;
|
|
161
|
+
}
|
|
162
|
+
export declare let useAsynchronousNumericAverage: UseAsynchronousNumericAverage;
|
|
163
|
+
interface UseAsynchronousBigIntAverage {
|
|
164
|
+
<E>(): AsynchronousCollector<E, BigIntAverageAccumulator, bigint>;
|
|
165
|
+
<E>(mapper: Functional<E, bigint>): AsynchronousCollector<E, BigIntAverageAccumulator, bigint>;
|
|
166
|
+
}
|
|
167
|
+
interface BigIntAverageAccumulator {
|
|
168
|
+
summate: bigint;
|
|
169
|
+
count: bigint;
|
|
170
|
+
}
|
|
171
|
+
export declare let useAsynchronousBigIntAverage: UseAsynchronousBigIntAverage;
|
|
172
|
+
export declare let useAsynchronousFrequency: <E>() => AsynchronousCollector<E, Map<E, bigint>, Map<E, bigint>>;
|
|
173
|
+
interface UseAsynchronousNumericMode {
|
|
174
|
+
<E>(): AsynchronousCollector<E, Map<number, bigint>, number>;
|
|
175
|
+
<E>(mapper: Functional<E, number>): AsynchronousCollector<E, Map<number, bigint>, number>;
|
|
176
|
+
}
|
|
177
|
+
export declare let useAsynchronousNumericMode: UseAsynchronousNumericMode;
|
|
178
|
+
interface UseAsynchronousBigIntMode {
|
|
179
|
+
<E>(): AsynchronousCollector<E, Map<bigint, bigint>, bigint>;
|
|
180
|
+
<E>(mapper: Functional<E, bigint>): AsynchronousCollector<E, Map<bigint, bigint>, bigint>;
|
|
181
|
+
}
|
|
182
|
+
export declare let useAsynchronousBigIntMode: UseAsynchronousBigIntMode;
|
|
183
|
+
interface UseAsynchronousNumericVariance {
|
|
184
|
+
<E>(): AsynchronousCollector<E, VarianceAccumulator, number>;
|
|
185
|
+
<E>(mapper: Functional<E, number>): AsynchronousCollector<E, VarianceAccumulator, number>;
|
|
186
|
+
}
|
|
187
|
+
interface VarianceAccumulator {
|
|
188
|
+
summate: number;
|
|
189
|
+
summateOfSquares: number;
|
|
190
|
+
count: number;
|
|
191
|
+
}
|
|
192
|
+
export declare let useAsynchronousNumericVariance: UseAsynchronousNumericVariance;
|
|
193
|
+
interface UseAsynchronousBigIntVariance {
|
|
194
|
+
<E>(): AsynchronousCollector<E, BigIntVarianceAccumulator, bigint>;
|
|
195
|
+
<E>(mapper: Functional<E, bigint>): AsynchronousCollector<E, BigIntVarianceAccumulator, bigint>;
|
|
196
|
+
}
|
|
197
|
+
interface BigIntVarianceAccumulator {
|
|
198
|
+
summate: bigint;
|
|
199
|
+
summateOfSquares: bigint;
|
|
200
|
+
count: bigint;
|
|
201
|
+
}
|
|
202
|
+
export declare let useAsynchronousBigIntVariance: UseAsynchronousBigIntVariance;
|
|
203
|
+
interface UseAsynchronousNumericStandardDeviation {
|
|
204
|
+
<E>(): AsynchronousCollector<E, StandardDeviationAccumulator, number>;
|
|
205
|
+
<E>(mapper: Functional<E, number>): AsynchronousCollector<E, StandardDeviationAccumulator, number>;
|
|
206
|
+
}
|
|
207
|
+
interface StandardDeviationAccumulator {
|
|
208
|
+
summate: number;
|
|
209
|
+
summateOfSquares: number;
|
|
210
|
+
count: number;
|
|
211
|
+
}
|
|
212
|
+
export declare let useAsynchronousNumericStandardDeviation: UseAsynchronousNumericStandardDeviation;
|
|
213
|
+
interface UseAsynchronousBigIntStandardDeviation {
|
|
214
|
+
<E>(): AsynchronousCollector<E, BigIntStandardDeviationAccumulator, bigint>;
|
|
215
|
+
<E>(mapper: Functional<E, bigint>): AsynchronousCollector<E, BigIntStandardDeviationAccumulator, bigint>;
|
|
216
|
+
}
|
|
217
|
+
interface BigIntStandardDeviationAccumulator {
|
|
218
|
+
summate: bigint;
|
|
219
|
+
summateOfSquares: bigint;
|
|
220
|
+
count: bigint;
|
|
221
|
+
}
|
|
222
|
+
export declare let useAsynchronousBigIntStandardDeviation: UseAsynchronousBigIntStandardDeviation;
|
|
223
|
+
interface UseAsynchronousNumericMedian {
|
|
224
|
+
<E>(): AsynchronousCollector<E, number[], number>;
|
|
225
|
+
<E>(mapper: Functional<E, number>): AsynchronousCollector<E, number[], number>;
|
|
226
|
+
}
|
|
227
|
+
export declare let useAsynchronousNumericMedian: UseAsynchronousNumericMedian;
|
|
228
|
+
interface UseAsynchronousBigIntMedian {
|
|
229
|
+
<E>(): AsynchronousCollector<E, bigint[], bigint>;
|
|
230
|
+
<E>(mapper: Functional<E, bigint>): AsynchronousCollector<E, bigint[], bigint>;
|
|
231
|
+
}
|
|
232
|
+
export declare let useAsynchronousBigIntMedian: UseAsynchronousBigIntMedian;
|
|
233
|
+
export declare let useAsynchronousToGeneratorFunction: <E>() => AsynchronousCollector<E, Array<E>, globalThis.Generator<E, void, undefined>>;
|
|
234
|
+
export declare let useAsynchronousToAsyncGeneratorFunction: <E>() => AsynchronousCollector<E, Array<E>, globalThis.AsyncGenerator<E, void, undefined>>;
|
|
235
|
+
export {};
|