@statedelta-libs/operators 0.0.2 → 0.1.1
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/LICENSE +21 -0
- package/README.md +27 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +356 -150
- package/dist/index.d.ts +356 -150
- package/dist/index.js +1 -1
- package/package.json +13 -13
package/dist/index.d.cts
CHANGED
|
@@ -1,152 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns its argument unchanged.
|
|
3
|
-
*
|
|
4
|
-
* The identity function is useful as a default transformation,
|
|
5
|
-
* placeholder in pipelines, or when a function is required but
|
|
6
|
-
* no transformation is needed.
|
|
7
|
-
*
|
|
8
|
-
* @param x - The value to return
|
|
9
|
-
* @returns The same value
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* identity(5); // 5
|
|
14
|
-
* identity({ a: 1 }); // { a: 1 }
|
|
15
|
-
* identity([1, 2, 3]); // [1, 2, 3]
|
|
16
|
-
*
|
|
17
|
-
* // Useful as default in pipelines
|
|
18
|
-
* const transform = condition ? someTransform : identity;
|
|
19
|
-
* pipe(data, transform, process);
|
|
20
|
-
*
|
|
21
|
-
* // Useful as filter predicate (keeps truthy values)
|
|
22
|
-
* [1, 0, 2, null, 3].filter(identity); // [1, 2, 3]
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
declare function identity<T>(x: T): T;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Creates a function that always returns the same value.
|
|
29
|
-
*
|
|
30
|
-
* Useful for providing constant values in places that expect functions,
|
|
31
|
-
* like in `cond`, `ifElse`, or as default transformations.
|
|
32
|
-
*
|
|
33
|
-
* @param x - The value to always return
|
|
34
|
-
* @returns A function that ignores its arguments and returns x
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* const alwaysFive = always(5);
|
|
39
|
-
* alwaysFive(); // 5
|
|
40
|
-
* alwaysFive(100); // 5
|
|
41
|
-
* alwaysFive('any'); // 5
|
|
42
|
-
*
|
|
43
|
-
* // Useful in conditionals
|
|
44
|
-
* const getDiscount = cond([
|
|
45
|
-
* [propEq('tier', 'gold'), always(0.3)],
|
|
46
|
-
* [propEq('tier', 'silver'), always(0.2)],
|
|
47
|
-
* [T, always(0)] // default
|
|
48
|
-
* ]);
|
|
49
|
-
*
|
|
50
|
-
* // Useful in ifElse
|
|
51
|
-
* const discount = ifElse(
|
|
52
|
-
* propEq('vip', true),
|
|
53
|
-
* always(0.2),
|
|
54
|
-
* always(0)
|
|
55
|
-
* );
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
declare function always<T>(x: T): () => T;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Constant functions that return true or false.
|
|
62
|
-
*
|
|
63
|
-
* These are useful as default predicates in conditional functions
|
|
64
|
-
* like `cond`, `filter`, or as terminal cases in pattern matching.
|
|
65
|
-
*/
|
|
66
|
-
/**
|
|
67
|
-
* A function that always returns true.
|
|
68
|
-
*
|
|
69
|
-
* Useful as a default case or catch-all predicate.
|
|
70
|
-
*
|
|
71
|
-
* @returns Always true
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* ```ts
|
|
75
|
-
* T(); // true
|
|
76
|
-
*
|
|
77
|
-
* // Default case in cond
|
|
78
|
-
* const classify = cond([
|
|
79
|
-
* [propEq('type', 'admin'), always('full')],
|
|
80
|
-
* [propEq('type', 'user'), always('limited')],
|
|
81
|
-
* [T, always('none')] // default case - always matches
|
|
82
|
-
* ]);
|
|
83
|
-
*
|
|
84
|
-
* // Always include
|
|
85
|
-
* filter(T, [1, 2, 3]); // [1, 2, 3]
|
|
86
|
-
* ```
|
|
87
|
-
*/
|
|
88
|
-
declare function T$1(): true;
|
|
89
|
-
/**
|
|
90
|
-
* A function that always returns false.
|
|
91
|
-
*
|
|
92
|
-
* Useful as a never-matching predicate or to explicitly exclude.
|
|
93
|
-
*
|
|
94
|
-
* @returns Always false
|
|
95
|
-
*
|
|
96
|
-
* @example
|
|
97
|
-
* ```ts
|
|
98
|
-
* F(); // false
|
|
99
|
-
*
|
|
100
|
-
* // Never match
|
|
101
|
-
* filter(F, [1, 2, 3]); // []
|
|
102
|
-
*
|
|
103
|
-
* // Explicit disable
|
|
104
|
-
* const shouldProcess = isEnabled ? checkCondition : F;
|
|
105
|
-
* ```
|
|
106
|
-
*/
|
|
107
|
-
declare function F(): false;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* Executes a side-effect function and returns the original value.
|
|
111
|
-
*
|
|
112
|
-
* `tap` is invaluable for debugging pipelines, logging intermediate
|
|
113
|
-
* values, or performing side-effects without breaking the data flow.
|
|
114
|
-
* The side-effect function's return value is ignored.
|
|
115
|
-
*
|
|
116
|
-
* @param fn - The side-effect function to execute
|
|
117
|
-
* @param x - The value to pass through
|
|
118
|
-
* @returns The original value x, unchanged
|
|
119
|
-
*
|
|
120
|
-
* @example
|
|
121
|
-
* ```ts
|
|
122
|
-
* // Debugging a pipeline
|
|
123
|
-
* pipe(
|
|
124
|
-
* [1, 2, 3, 4, 5],
|
|
125
|
-
* filter(x => x > 2),
|
|
126
|
-
* tap(console.log), // logs: [3, 4, 5]
|
|
127
|
-
* map(x => x * 2),
|
|
128
|
-
* tap(console.log), // logs: [6, 8, 10]
|
|
129
|
-
* sum
|
|
130
|
-
* ); // 24
|
|
131
|
-
*
|
|
132
|
-
* // Curried usage
|
|
133
|
-
* const log = tap(console.log);
|
|
134
|
-
* log('hello'); // logs 'hello', returns 'hello'
|
|
135
|
-
*
|
|
136
|
-
* // Side-effects in transformations
|
|
137
|
-
* const users = pipe(
|
|
138
|
-
* fetchUsers(),
|
|
139
|
-
* tap(users => analytics.track('users_fetched', { count: users.length })),
|
|
140
|
-
* filter(user => user.active)
|
|
141
|
-
* );
|
|
142
|
-
* ```
|
|
143
|
-
*/
|
|
144
|
-
interface TapFn {
|
|
145
|
-
<T>(fn: (x: T) => void, x: T): T;
|
|
146
|
-
<T>(fn: (x: T) => void): (x: T) => T;
|
|
147
|
-
}
|
|
148
|
-
declare const tap: TapFn;
|
|
149
|
-
|
|
150
1
|
/**
|
|
151
2
|
* @statedelta-libs/operators - Type Definitions
|
|
152
3
|
*
|
|
@@ -353,6 +204,155 @@ type Reducer<T, U> = (accumulator: U, value: T, index: number, array: readonly T
|
|
|
353
204
|
*/
|
|
354
205
|
type Comparator<T> = (a: T, b: T) => number;
|
|
355
206
|
|
|
207
|
+
/**
|
|
208
|
+
* Executes a side-effect function and returns the original value.
|
|
209
|
+
*
|
|
210
|
+
* `tap` is invaluable for debugging pipelines, logging intermediate
|
|
211
|
+
* values, or performing side-effects without breaking the data flow.
|
|
212
|
+
* The side-effect function's return value is ignored.
|
|
213
|
+
*
|
|
214
|
+
* @param fn - The side-effect function to execute
|
|
215
|
+
* @param x - The value to pass through
|
|
216
|
+
* @returns The original value x, unchanged
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* ```ts
|
|
220
|
+
* // Debugging a pipeline
|
|
221
|
+
* pipe(
|
|
222
|
+
* [1, 2, 3, 4, 5],
|
|
223
|
+
* filter(x => x > 2),
|
|
224
|
+
* tap(console.log), // logs: [3, 4, 5]
|
|
225
|
+
* map(x => x * 2),
|
|
226
|
+
* tap(console.log), // logs: [6, 8, 10]
|
|
227
|
+
* sum
|
|
228
|
+
* ); // 24
|
|
229
|
+
*
|
|
230
|
+
* // Curried usage
|
|
231
|
+
* const log = tap(console.log);
|
|
232
|
+
* log('hello'); // logs 'hello', returns 'hello'
|
|
233
|
+
*
|
|
234
|
+
* // Side-effects in transformations
|
|
235
|
+
* const users = pipe(
|
|
236
|
+
* fetchUsers(),
|
|
237
|
+
* tap(users => analytics.track('users_fetched', { count: users.length })),
|
|
238
|
+
* filter(user => user.active)
|
|
239
|
+
* );
|
|
240
|
+
* ```
|
|
241
|
+
*/
|
|
242
|
+
interface TapFn {
|
|
243
|
+
<T>(fn: (x: T) => void, x: T): T;
|
|
244
|
+
<T>(fn: (x: T) => void): (x: T) => T;
|
|
245
|
+
}
|
|
246
|
+
declare const tap: TapFn;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* Returns its argument unchanged.
|
|
250
|
+
*
|
|
251
|
+
* The identity function is useful as a default transformation,
|
|
252
|
+
* placeholder in pipelines, or when a function is required but
|
|
253
|
+
* no transformation is needed.
|
|
254
|
+
*
|
|
255
|
+
* @param x - The value to return
|
|
256
|
+
* @returns The same value
|
|
257
|
+
*
|
|
258
|
+
* @example
|
|
259
|
+
* ```ts
|
|
260
|
+
* identity(5); // 5
|
|
261
|
+
* identity({ a: 1 }); // { a: 1 }
|
|
262
|
+
* identity([1, 2, 3]); // [1, 2, 3]
|
|
263
|
+
*
|
|
264
|
+
* // Useful as default in pipelines
|
|
265
|
+
* const transform = condition ? someTransform : identity;
|
|
266
|
+
* pipe(data, transform, process);
|
|
267
|
+
*
|
|
268
|
+
* // Useful as filter predicate (keeps truthy values)
|
|
269
|
+
* [1, 0, 2, null, 3].filter(identity); // [1, 2, 3]
|
|
270
|
+
* ```
|
|
271
|
+
*/
|
|
272
|
+
declare function identity<T>(x: T): T;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Creates a function that always returns the same value.
|
|
276
|
+
*
|
|
277
|
+
* Useful for providing constant values in places that expect functions,
|
|
278
|
+
* like in `cond`, `ifElse`, or as default transformations.
|
|
279
|
+
*
|
|
280
|
+
* @param x - The value to always return
|
|
281
|
+
* @returns A function that ignores its arguments and returns x
|
|
282
|
+
*
|
|
283
|
+
* @example
|
|
284
|
+
* ```ts
|
|
285
|
+
* const alwaysFive = always(5);
|
|
286
|
+
* alwaysFive(); // 5
|
|
287
|
+
* alwaysFive(100); // 5
|
|
288
|
+
* alwaysFive('any'); // 5
|
|
289
|
+
*
|
|
290
|
+
* // Useful in conditionals
|
|
291
|
+
* const getDiscount = cond([
|
|
292
|
+
* [propEq('tier', 'gold'), always(0.3)],
|
|
293
|
+
* [propEq('tier', 'silver'), always(0.2)],
|
|
294
|
+
* [T, always(0)] // default
|
|
295
|
+
* ]);
|
|
296
|
+
*
|
|
297
|
+
* // Useful in ifElse
|
|
298
|
+
* const discount = ifElse(
|
|
299
|
+
* propEq('vip', true),
|
|
300
|
+
* always(0.2),
|
|
301
|
+
* always(0)
|
|
302
|
+
* );
|
|
303
|
+
* ```
|
|
304
|
+
*/
|
|
305
|
+
declare function always<T>(x: T): () => T;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Constant functions that return true or false.
|
|
309
|
+
*
|
|
310
|
+
* These are useful as default predicates in conditional functions
|
|
311
|
+
* like `cond`, `filter`, or as terminal cases in pattern matching.
|
|
312
|
+
*/
|
|
313
|
+
/**
|
|
314
|
+
* A function that always returns true.
|
|
315
|
+
*
|
|
316
|
+
* Useful as a default case or catch-all predicate.
|
|
317
|
+
*
|
|
318
|
+
* @returns Always true
|
|
319
|
+
*
|
|
320
|
+
* @example
|
|
321
|
+
* ```ts
|
|
322
|
+
* T(); // true
|
|
323
|
+
*
|
|
324
|
+
* // Default case in cond
|
|
325
|
+
* const classify = cond([
|
|
326
|
+
* [propEq('type', 'admin'), always('full')],
|
|
327
|
+
* [propEq('type', 'user'), always('limited')],
|
|
328
|
+
* [T, always('none')] // default case - always matches
|
|
329
|
+
* ]);
|
|
330
|
+
*
|
|
331
|
+
* // Always include
|
|
332
|
+
* filter(T, [1, 2, 3]); // [1, 2, 3]
|
|
333
|
+
* ```
|
|
334
|
+
*/
|
|
335
|
+
declare function T$1(): true;
|
|
336
|
+
/**
|
|
337
|
+
* A function that always returns false.
|
|
338
|
+
*
|
|
339
|
+
* Useful as a never-matching predicate or to explicitly exclude.
|
|
340
|
+
*
|
|
341
|
+
* @returns Always false
|
|
342
|
+
*
|
|
343
|
+
* @example
|
|
344
|
+
* ```ts
|
|
345
|
+
* F(); // false
|
|
346
|
+
*
|
|
347
|
+
* // Never match
|
|
348
|
+
* filter(F, [1, 2, 3]); // []
|
|
349
|
+
*
|
|
350
|
+
* // Explicit disable
|
|
351
|
+
* const shouldProcess = isEnabled ? checkCondition : F;
|
|
352
|
+
* ```
|
|
353
|
+
*/
|
|
354
|
+
declare function F(): false;
|
|
355
|
+
|
|
356
356
|
/**
|
|
357
357
|
* Transforms a function into a curried version.
|
|
358
358
|
*
|
|
@@ -2156,6 +2156,8 @@ declare function divide(a: number): (b: number) => number;
|
|
|
2156
2156
|
declare function divide(a: number, b: number): number;
|
|
2157
2157
|
declare function modulo(a: number): (b: number) => number;
|
|
2158
2158
|
declare function modulo(a: number, b: number): number;
|
|
2159
|
+
declare function mathMod(a: number): (b: number) => number;
|
|
2160
|
+
declare function mathMod(a: number, b: number): number;
|
|
2159
2161
|
declare function negate(n: number): number;
|
|
2160
2162
|
declare function inc(n: number): number;
|
|
2161
2163
|
declare function dec(n: number): number;
|
|
@@ -2350,4 +2352,208 @@ declare function transduce<A, B, Acc>(transducer: Transducer<A, B>, transformer:
|
|
|
2350
2352
|
declare function into<A, B>(transducer: Transducer<A, B>): (collection: readonly A[]) => B[];
|
|
2351
2353
|
declare function into<A, B>(transducer: Transducer<A, B>, collection: readonly A[]): B[];
|
|
2352
2354
|
|
|
2353
|
-
|
|
2355
|
+
declare const scope: {
|
|
2356
|
+
readonly identity: typeof identity;
|
|
2357
|
+
readonly always: typeof always;
|
|
2358
|
+
readonly T: typeof T$1;
|
|
2359
|
+
readonly F: typeof F;
|
|
2360
|
+
readonly tap: TapFn;
|
|
2361
|
+
readonly curry: typeof curry;
|
|
2362
|
+
readonly curryN: typeof curryN;
|
|
2363
|
+
readonly partial: typeof partial;
|
|
2364
|
+
readonly partialRight: typeof partialRight;
|
|
2365
|
+
readonly pipe: PipeFn;
|
|
2366
|
+
readonly pipeBuilder: PipeBuilderFn;
|
|
2367
|
+
readonly compose: ComposeBuilderFn;
|
|
2368
|
+
readonly pipeWith: typeof pipeWith;
|
|
2369
|
+
readonly pipeAsync: typeof pipeAsync;
|
|
2370
|
+
readonly composeAsync: typeof composeAsync;
|
|
2371
|
+
readonly pipeK: typeof pipeK;
|
|
2372
|
+
readonly composeK: typeof composeK;
|
|
2373
|
+
readonly letIn: typeof letIn;
|
|
2374
|
+
readonly map: {
|
|
2375
|
+
<T, U>(fn: (value: T, index: number, array: readonly T[]) => U, arr: readonly T[]): U[];
|
|
2376
|
+
<T, U>(fn: (value: T, index: number, array: readonly T[]) => U): (arr: readonly T[]) => U[];
|
|
2377
|
+
};
|
|
2378
|
+
readonly filter: {
|
|
2379
|
+
<T, S extends T>(pred: (value: T, index: number, array: readonly T[]) => value is S, arr: readonly T[]): S[];
|
|
2380
|
+
<T>(pred: (value: T, index: number, array: readonly T[]) => boolean, arr: readonly T[]): T[];
|
|
2381
|
+
<T, S extends T>(pred: (value: T, index: number, array: readonly T[]) => value is S): (arr: readonly T[]) => S[];
|
|
2382
|
+
<T>(pred: (value: T, index: number, array: readonly T[]) => boolean): (arr: readonly T[]) => T[];
|
|
2383
|
+
};
|
|
2384
|
+
readonly reject: {
|
|
2385
|
+
<T>(pred: (value: T, index: number, array: readonly T[]) => boolean, arr: readonly T[]): T[];
|
|
2386
|
+
<T>(pred: (value: T, index: number, array: readonly T[]) => boolean): (arr: readonly T[]) => T[];
|
|
2387
|
+
};
|
|
2388
|
+
readonly reduce: {
|
|
2389
|
+
<T, U>(fn: (accumulator: U, value: T, index: number, array: readonly T[]) => U, init: U, arr: readonly T[]): U;
|
|
2390
|
+
<T, U>(fn: (accumulator: U, value: T, index: number, array: readonly T[]) => U, init: U): (arr: readonly T[]) => U;
|
|
2391
|
+
<T, U>(fn: (accumulator: U, value: T, index: number, array: readonly T[]) => U): {
|
|
2392
|
+
(init: U, arr: readonly T[]): U;
|
|
2393
|
+
(init: U): (arr: readonly T[]) => U;
|
|
2394
|
+
};
|
|
2395
|
+
};
|
|
2396
|
+
readonly reduceRight: {
|
|
2397
|
+
<T, U>(fn: (accumulator: U, value: T, index: number, array: readonly T[]) => U, init: U, arr: readonly T[]): U;
|
|
2398
|
+
<T, U>(fn: (accumulator: U, value: T, index: number, array: readonly T[]) => U, init: U): (arr: readonly T[]) => U;
|
|
2399
|
+
<T, U>(fn: (accumulator: U, value: T, index: number, array: readonly T[]) => U): {
|
|
2400
|
+
(init: U, arr: readonly T[]): U;
|
|
2401
|
+
(init: U): (arr: readonly T[]) => U;
|
|
2402
|
+
};
|
|
2403
|
+
};
|
|
2404
|
+
readonly head: typeof head;
|
|
2405
|
+
readonly tail: typeof tail;
|
|
2406
|
+
readonly last: typeof last;
|
|
2407
|
+
readonly init: typeof init;
|
|
2408
|
+
readonly nth: typeof nth;
|
|
2409
|
+
readonly take: typeof take;
|
|
2410
|
+
readonly takeLast: typeof takeLast;
|
|
2411
|
+
readonly takeWhile: typeof takeWhile;
|
|
2412
|
+
readonly drop: typeof drop;
|
|
2413
|
+
readonly dropLast: typeof dropLast;
|
|
2414
|
+
readonly dropWhile: typeof dropWhile;
|
|
2415
|
+
readonly slice: typeof slice;
|
|
2416
|
+
readonly find: typeof find;
|
|
2417
|
+
readonly findIndex: typeof findIndex;
|
|
2418
|
+
readonly findLast: typeof findLast;
|
|
2419
|
+
readonly indexOf: typeof indexOf;
|
|
2420
|
+
readonly includes: typeof includes;
|
|
2421
|
+
readonly flatten: typeof flatten;
|
|
2422
|
+
readonly unnest: typeof flatten;
|
|
2423
|
+
readonly chain: typeof chain;
|
|
2424
|
+
readonly uniq: typeof uniq;
|
|
2425
|
+
readonly uniqBy: typeof uniqBy;
|
|
2426
|
+
readonly sort: typeof sort;
|
|
2427
|
+
readonly sortBy: typeof sortBy;
|
|
2428
|
+
readonly reverse: typeof reverse;
|
|
2429
|
+
readonly groupBy: typeof groupBy;
|
|
2430
|
+
readonly concat: typeof concat;
|
|
2431
|
+
readonly append: typeof append;
|
|
2432
|
+
readonly prepend: typeof prepend;
|
|
2433
|
+
readonly zip: typeof zip;
|
|
2434
|
+
readonly zipWith: typeof zipWith;
|
|
2435
|
+
readonly zipObj: typeof zipObj;
|
|
2436
|
+
readonly some: typeof some;
|
|
2437
|
+
readonly every: typeof every;
|
|
2438
|
+
readonly none: typeof none;
|
|
2439
|
+
readonly length: typeof length;
|
|
2440
|
+
readonly sum: typeof sum;
|
|
2441
|
+
readonly product: typeof product;
|
|
2442
|
+
readonly mean: typeof mean;
|
|
2443
|
+
readonly median: typeof median;
|
|
2444
|
+
readonly min: typeof min;
|
|
2445
|
+
readonly max: typeof max;
|
|
2446
|
+
readonly countBy: typeof countBy;
|
|
2447
|
+
readonly range: typeof range;
|
|
2448
|
+
readonly partition: typeof partition;
|
|
2449
|
+
readonly splitEvery: typeof splitEvery;
|
|
2450
|
+
readonly indexBy: typeof indexBy;
|
|
2451
|
+
readonly prop: typeof prop;
|
|
2452
|
+
readonly path: typeof path;
|
|
2453
|
+
readonly propOr: typeof propOr;
|
|
2454
|
+
readonly pathOr: typeof pathOr;
|
|
2455
|
+
readonly props: typeof props;
|
|
2456
|
+
readonly pluck: typeof pluck;
|
|
2457
|
+
readonly assoc: typeof assoc;
|
|
2458
|
+
readonly assocPath: typeof assocPath;
|
|
2459
|
+
readonly dissoc: typeof dissoc;
|
|
2460
|
+
readonly dissocPath: typeof dissocPath;
|
|
2461
|
+
readonly pick: typeof pick;
|
|
2462
|
+
readonly omit: typeof omit;
|
|
2463
|
+
readonly merge: typeof merge;
|
|
2464
|
+
readonly mergeDeep: typeof mergeDeep;
|
|
2465
|
+
readonly evolve: typeof evolve;
|
|
2466
|
+
readonly applySpec: typeof applySpec;
|
|
2467
|
+
readonly extend: typeof extend;
|
|
2468
|
+
readonly keys: typeof keys;
|
|
2469
|
+
readonly values: typeof values;
|
|
2470
|
+
readonly entries: typeof entries;
|
|
2471
|
+
readonly fromEntries: typeof fromEntries;
|
|
2472
|
+
readonly equals: typeof equals;
|
|
2473
|
+
readonly identical: typeof identical;
|
|
2474
|
+
readonly gt: typeof gt;
|
|
2475
|
+
readonly gte: typeof gte;
|
|
2476
|
+
readonly lt: typeof lt;
|
|
2477
|
+
readonly lte: typeof lte;
|
|
2478
|
+
readonly not: typeof not;
|
|
2479
|
+
readonly and: typeof and;
|
|
2480
|
+
readonly or: typeof or;
|
|
2481
|
+
readonly both: typeof both;
|
|
2482
|
+
readonly either: typeof either;
|
|
2483
|
+
readonly complement: typeof complement;
|
|
2484
|
+
readonly allPass: typeof allPass;
|
|
2485
|
+
readonly anyPass: typeof anyPass;
|
|
2486
|
+
readonly ifElse: typeof ifElse;
|
|
2487
|
+
readonly when: typeof when;
|
|
2488
|
+
readonly unless: typeof unless;
|
|
2489
|
+
readonly cond: typeof cond;
|
|
2490
|
+
readonly tryCatch: typeof tryCatch;
|
|
2491
|
+
readonly propEq: typeof propEq;
|
|
2492
|
+
readonly propSatisfies: typeof propSatisfies;
|
|
2493
|
+
readonly pathEq: typeof pathEq;
|
|
2494
|
+
readonly pathSatisfies: typeof pathSatisfies;
|
|
2495
|
+
readonly where: typeof where;
|
|
2496
|
+
readonly whereEq: typeof whereEq;
|
|
2497
|
+
readonly is: typeof is;
|
|
2498
|
+
readonly isNil: typeof isNil;
|
|
2499
|
+
readonly isEmpty: typeof isEmpty;
|
|
2500
|
+
readonly isNotNil: typeof isNotNil;
|
|
2501
|
+
readonly isNotEmpty: typeof isNotEmpty;
|
|
2502
|
+
readonly defaultTo: typeof defaultTo;
|
|
2503
|
+
readonly coalesce: typeof coalesce;
|
|
2504
|
+
readonly add: typeof add;
|
|
2505
|
+
readonly subtract: typeof subtract;
|
|
2506
|
+
readonly multiply: typeof multiply;
|
|
2507
|
+
readonly divide: typeof divide;
|
|
2508
|
+
readonly modulo: typeof modulo;
|
|
2509
|
+
readonly mathMod: typeof mathMod;
|
|
2510
|
+
readonly negate: typeof negate;
|
|
2511
|
+
readonly inc: typeof inc;
|
|
2512
|
+
readonly dec: typeof dec;
|
|
2513
|
+
readonly clamp: typeof clamp;
|
|
2514
|
+
readonly abs: typeof abs;
|
|
2515
|
+
readonly round: typeof round;
|
|
2516
|
+
readonly floor: typeof floor;
|
|
2517
|
+
readonly ceil: typeof ceil;
|
|
2518
|
+
readonly pow: typeof pow;
|
|
2519
|
+
readonly toUpper: typeof toUpper;
|
|
2520
|
+
readonly toLower: typeof toLower;
|
|
2521
|
+
readonly trim: typeof trim;
|
|
2522
|
+
readonly split: typeof split;
|
|
2523
|
+
readonly join: typeof join;
|
|
2524
|
+
readonly replace: typeof replace;
|
|
2525
|
+
readonly startsWith: typeof startsWith;
|
|
2526
|
+
readonly endsWith: typeof endsWith;
|
|
2527
|
+
readonly test: typeof test;
|
|
2528
|
+
readonly match: typeof match;
|
|
2529
|
+
readonly substring: typeof substring;
|
|
2530
|
+
readonly padStart: typeof padStart;
|
|
2531
|
+
readonly padEnd: typeof padEnd;
|
|
2532
|
+
readonly concatStr: typeof concatStr;
|
|
2533
|
+
readonly toString: typeof toString;
|
|
2534
|
+
readonly toNumber: typeof toNumber;
|
|
2535
|
+
readonly toBoolean: typeof toBoolean;
|
|
2536
|
+
readonly toArray: typeof toArray;
|
|
2537
|
+
readonly toObject: typeof toObject;
|
|
2538
|
+
readonly type: typeof type;
|
|
2539
|
+
readonly lens: typeof lens;
|
|
2540
|
+
readonly lensProp: typeof lensProp;
|
|
2541
|
+
readonly lensPath: typeof lensPath;
|
|
2542
|
+
readonly lensIndex: typeof lensIndex;
|
|
2543
|
+
readonly view: typeof view;
|
|
2544
|
+
readonly set: typeof set;
|
|
2545
|
+
readonly over: typeof over;
|
|
2546
|
+
readonly mapAsync: typeof mapAsync;
|
|
2547
|
+
readonly mapSerial: typeof mapSerial;
|
|
2548
|
+
readonly filterAsync: typeof filterAsync;
|
|
2549
|
+
readonly reduceAsync: typeof reduceAsync;
|
|
2550
|
+
readonly mapT: typeof mapT;
|
|
2551
|
+
readonly filterT: typeof filterT;
|
|
2552
|
+
readonly takeT: typeof takeT;
|
|
2553
|
+
readonly dropT: typeof dropT;
|
|
2554
|
+
readonly composeT: typeof composeT;
|
|
2555
|
+
readonly transduce: typeof transduce;
|
|
2556
|
+
readonly into: typeof into;
|
|
2557
|
+
};
|
|
2558
|
+
|
|
2559
|
+
export { type BinaryFn, type Comparator, type ComposeBuilderFn, type Curry1, type Curry2, type Curry3, type DeepReadonly, F, type Fn, type Head, type Last, type Lens, type Mapper, type Nullable, type ParamsOf, type PipeBuilderFn, type PipeFn, type PipeTransformer, type Placeholder, type Predicate, type Reducer, type ReturnOf, T$1 as T, type Tail, type TapFn, type TernaryFn, type Transducer, type Transformer, type UnaryFn, type VariadicFn, placeholder as __, abs, add, allPass, always, and, anyPass, append, applySpec, assoc, assocPath, both, ceil, chain, clamp, coalesce, complement, compose, composeAsync, composeK, composeT, concat, concatStr, cond, countBy, curry, curryN, dec, defaultTo, dissoc, dissocPath, divide, drop, dropLast, dropT, dropWhile, either, endsWith, entries, equals, every, evolve, extend, filter, filterAsync, filterT, find, findIndex, findLast, flatten, floor, fromEntries, groupBy, gt, gte, head, identical, identity, ifElse, inc, includes, indexBy, indexOf, init, into, is, isEmpty, isNil, isNotEmpty, isNotNil, isPlaceholder, join, keys, last, length, lens, lensIndex, lensPath, lensProp, letIn, lt, lte, map, mapAsync, mapSerial, mapT, match, mathMod, max, mean, median, merge, mergeDeep, min, modulo, multiply, negate, none, not, nth, omit, or, over, padEnd, padStart, partial, partialRight, partition, path, pathEq, pathOr, pathSatisfies, pick, pipe, pipeAsync, pipeBuilder, pipeK, pipeWith, pluck, pow, prepend, product, prop, propEq, propOr, propSatisfies, props, range, reduce, reduceAsync, reduceRight, reject, replace, reverse, round, scope, set, slice, some, sort, sortBy, split, splitEvery, startsWith, substring, subtract, sum, tail, take, takeLast, takeT, takeWhile, tap, test, toArray, toBoolean, toLower, toNumber, toObject, toString, toUpper, transduce, trim, tryCatch, type, uniq, uniqBy, unless, unnest, values, view, when, where, whereEq, zip, zipObj, zipWith };
|