pepka 0.13.0-b3 → 0.13.0-b4

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/bundle.d.ts CHANGED
@@ -16,10 +16,10 @@ declare const __: Placeholder;
16
16
  export declare const curry: <Func extends AnyFunc<any, AnyArgs>>(fn: AnyFunc) => FT.Curry<Func>;
17
17
  export type Func2 = (a: any, b: any) => any;
18
18
  export declare function curry2<Func extends Func2>(fn: Func): {
19
- (a: Parameters<Func>[0]): (b: Parameters<Func>[1]) => ReturnType<Func>;
20
- (a: Parameters<Func>[0], b: Parameters<Func>[1]): ReturnType<Func>;
21
19
  (a: Placeholder, b: Parameters<Func>[1]): (a: Parameters<Func>[0]) => ReturnType<Func>;
22
20
  (a: Parameters<Func>[0], b: Placeholder): (b: Parameters<Func>[1]) => ReturnType<Func>;
21
+ (a: Parameters<Func>[0]): (b: Parameters<Func>[1]) => ReturnType<Func>;
22
+ (a: Parameters<Func>[0], b: Parameters<Func>[1]): ReturnType<Func>;
23
23
  };
24
24
  export type Func3 = (a: any, b: any, c: any) => any;
25
25
  export declare function curry3<Func extends Func3>(fn: Func): FT.Curry<Func>;
@@ -28,46 +28,46 @@ export declare const toLower: (s: string) => string;
28
28
  export declare const toUpper: (s: string) => string;
29
29
  export declare const type: (s: any) => any;
30
30
  export declare const equals: {
31
- (a: any): (b: any) => boolean;
32
- (a: any, b: any): boolean;
33
31
  (a: symbol, b: any): (a: any) => boolean;
34
32
  (a: any, b: symbol): (b: any) => boolean;
33
+ (a: any): (b: any) => boolean;
34
+ (a: any, b: any): boolean;
35
35
  };
36
36
  export declare const ifElse: FT.Curry<AnyFunc<any, AnyArgs>>;
37
37
  export declare const when: FT.Curry<(cond: (s: any) => boolean, pipe: (s: any) => any, s: any) => any>;
38
38
  export declare const compose: FT.Compose;
39
39
  export declare const bind: {
40
- (a: any): (b: any) => any;
41
- (a: any, b: any): any;
42
40
  (a: symbol, b: any): (a: any) => any;
43
41
  (a: any, b: symbol): (b: any) => any;
42
+ (a: any): (b: any) => any;
43
+ (a: any, b: any): any;
44
44
  };
45
45
  export declare const nth: {
46
- (a: number): (b: unknown[]) => unknown;
47
- (a: number, b: unknown[]): unknown;
48
46
  (a: symbol, b: unknown[]): (a: number) => unknown;
49
47
  (a: number, b: symbol): (b: unknown[]) => unknown;
48
+ (a: number): (b: unknown[]) => unknown;
49
+ (a: number, b: unknown[]): unknown;
50
50
  };
51
51
  export declare const includes: {
52
- (a: unknown): (b: unknown[]) => boolean;
53
- (a: unknown, b: unknown[]): boolean;
54
52
  (a: symbol, b: unknown[]): (a: unknown) => boolean;
55
53
  (a: unknown, b: symbol): (b: unknown[]) => boolean;
54
+ (a: unknown): (b: unknown[]) => boolean;
55
+ (a: unknown, b: unknown[]): boolean;
56
56
  };
57
57
  export declare const slice: FT.Curry<(from: number, to: number, o: any[] | string) => string | any[]>;
58
58
  export declare const head: (b: unknown[]) => unknown;
59
59
  export declare const tail: FT.Curry<(o: string | any[]) => string | any[]>;
60
60
  export declare const add: {
61
- (a: number): (b: number) => number;
62
- (a: number, b: number): number;
63
61
  (a: symbol, b: number): (a: number) => number;
64
62
  (a: number, b: symbol): (b: number) => number;
65
- };
66
- export declare const subtract: {
67
63
  (a: number): (b: number) => number;
68
64
  (a: number, b: number): number;
65
+ };
66
+ export declare const subtract: {
69
67
  (a: symbol, b: number): (a: number) => number;
70
68
  (a: number, b: symbol): (b: number) => number;
69
+ (a: number): (b: number) => number;
70
+ (a: number, b: number): number;
71
71
  };
72
72
  export declare const flip: (fn: Function) => FT.Curry<AnyFunc<any, AnyArgs>>;
73
73
  export declare const isNil: (s: any) => boolean;
@@ -85,50 +85,50 @@ export declare const toPairs: (o: AnyObject | any[]) => [
85
85
  any
86
86
  ][];
87
87
  export declare const test: {
88
- (a: RegExp): (b: string) => boolean;
89
- (a: RegExp, b: string): boolean;
90
88
  (a: symbol, b: string): (a: RegExp) => boolean;
91
89
  (a: RegExp, b: symbol): (b: string) => boolean;
90
+ (a: RegExp): (b: string) => boolean;
91
+ (a: RegExp, b: string): boolean;
92
92
  };
93
93
  export declare const tap: {
94
- (a: Function): (b: any) => any;
95
- (a: Function, b: any): any;
96
94
  (a: symbol, b: any): (a: Function) => any;
97
95
  (a: Function, b: symbol): (b: any) => any;
96
+ (a: Function): (b: any) => any;
97
+ (a: Function, b: any): any;
98
98
  };
99
99
  export declare const append: {
100
- (a: any): (b: any[]) => any[];
101
- (a: any, b: any[]): any[];
102
100
  (a: symbol, b: any[]): (a: any) => any[];
103
101
  (a: any, b: symbol): (b: any[]) => any[];
102
+ (a: any): (b: any[]) => any[];
103
+ (a: any, b: any[]): any[];
104
104
  };
105
105
  export declare const split: {
106
- (a: string): (b: string) => string[];
107
- (a: string, b: string): string[];
108
106
  (a: symbol, b: string): (a: string) => string[];
109
107
  (a: string, b: symbol): (b: string) => string[];
108
+ (a: string): (b: string) => string[];
109
+ (a: string, b: string): string[];
110
110
  };
111
111
  export declare const T: (...args: any[]) => true;
112
112
  export declare const F: (...args: any[]) => false;
113
113
  export declare const sizeof: (s: any[] | string | AnyObject) => number;
114
114
  export declare const range: {
115
- (a: number): (b: number) => any[];
116
- (a: number, b: number): any[];
117
115
  (a: symbol, b: number): (a: number) => any[];
118
116
  (a: number, b: symbol): (b: number) => any[];
117
+ (a: number): (b: number) => any[];
118
+ (a: number, b: number): any[];
119
119
  };
120
120
  export declare const uniq: (xs: any[]) => any;
121
121
  export declare const intersection: {
122
- (a: any[]): (b: any[]) => any[];
123
- (a: any[], b: any[]): any[];
124
122
  (a: symbol, b: any[]): (a: any[]) => any[];
125
123
  (a: any[], b: symbol): (b: any[]) => any[];
124
+ (a: any[]): (b: any[]) => any[];
125
+ (a: any[], b: any[]): any[];
126
126
  };
127
127
  export declare const genBy: {
128
- (a: (i: number) => any): (b: number) => any[];
129
- (a: (i: number) => any, b: number): any[];
130
128
  (a: symbol, b: number): (a: (i: number) => any) => any[];
131
129
  (a: (i: number) => any, b: symbol): (b: number) => any[];
130
+ (a: (i: number) => any): (b: number) => any[];
131
+ (a: (i: number) => any, b: number): any[];
132
132
  };
133
133
  export declare const once: <Func extends AnyFunc<any, AnyArgs>>(fn: Func) => (...args: Parameters<Func>) => any;
134
134
  export declare const reverse: (xs: any[]) => FT.Curry<(fn: Reducer, accum: any, arr: any[]) => FT.Curry<(...p: [
@@ -136,112 +136,112 @@ export declare const reverse: (xs: any[]) => FT.Curry<(fn: Reducer, accum: any,
136
136
  accum: any
137
137
  ]) => any>>;
138
138
  export declare const gt: {
139
- (a: number): (b: number) => boolean;
140
- (a: number, b: number): boolean;
141
139
  (a: symbol, b: number): (a: number) => boolean;
142
140
  (a: number, b: symbol): (b: number) => boolean;
143
- };
144
- export declare const lt: {
145
141
  (a: number): (b: number) => boolean;
146
142
  (a: number, b: number): boolean;
143
+ };
144
+ export declare const lt: {
147
145
  (a: symbol, b: number): (a: number) => boolean;
148
146
  (a: number, b: symbol): (b: number) => boolean;
149
- };
150
- export declare const gte: {
151
147
  (a: number): (b: number) => boolean;
152
148
  (a: number, b: number): boolean;
149
+ };
150
+ export declare const gte: {
153
151
  (a: symbol, b: number): (a: number) => boolean;
154
152
  (a: number, b: symbol): (b: number) => boolean;
155
- };
156
- export declare const lte: {
157
153
  (a: number): (b: number) => boolean;
158
154
  (a: number, b: number): boolean;
155
+ };
156
+ export declare const lte: {
159
157
  (a: symbol, b: number): (a: number) => boolean;
160
158
  (a: number, b: symbol): (b: number) => boolean;
159
+ (a: number): (b: number) => boolean;
160
+ (a: number, b: number): boolean;
161
161
  };
162
162
  export declare const sort: {
163
- (a: any): (b: any[]) => any[];
164
- (a: any, b: any[]): any[];
165
163
  (a: symbol, b: any[]): (a: any) => any[];
166
164
  (a: any, b: symbol): (b: any[]) => any[];
165
+ (a: any): (b: any[]) => any[];
166
+ (a: any, b: any[]): any[];
167
167
  };
168
168
  export declare const find: {
169
- (a: Cond): (b: any[]) => any;
170
- (a: Cond, b: any[]): any;
171
169
  (a: symbol, b: any[]): (a: Cond) => any;
172
170
  (a: Cond, b: symbol): (b: any[]) => any;
171
+ (a: Cond): (b: any[]) => any;
172
+ (a: Cond, b: any[]): any;
173
173
  };
174
174
  export declare const findIndex: {
175
- (a: Cond): (b: any[]) => number;
176
- (a: Cond, b: any[]): number;
177
175
  (a: symbol, b: any[]): (a: Cond) => number;
178
176
  (a: Cond, b: symbol): (b: any[]) => number;
177
+ (a: Cond): (b: any[]) => number;
178
+ (a: Cond, b: any[]): number;
179
179
  };
180
180
  export declare const indexOf: {
181
- (a: any): (b: any[]) => number;
182
- (a: any, b: any[]): number;
183
181
  (a: symbol, b: any[]): (a: any) => number;
184
182
  (a: any, b: symbol): (b: any[]) => number;
183
+ (a: any): (b: any[]) => number;
184
+ (a: any, b: any[]): number;
185
185
  };
186
186
  export declare const explore: (caption: string, level?: string) => (b: any) => any;
187
187
  export declare const cond: {
188
- (a: [
188
+ (a: symbol, b: any): (a: [
189
189
  Cond,
190
190
  Function
191
- ][]): (b: any) => any;
191
+ ][]) => any;
192
192
  (a: [
193
193
  Cond,
194
194
  Function
195
- ][], b: any): any;
196
- (a: symbol, b: any): (a: [
195
+ ][], b: symbol): (b: any) => any;
196
+ (a: [
197
197
  Cond,
198
198
  Function
199
- ][]) => any;
199
+ ][]): (b: any) => any;
200
200
  (a: [
201
201
  Cond,
202
202
  Function
203
- ][], b: symbol): (b: any) => any;
203
+ ][], b: any): any;
204
204
  };
205
205
  export declare const assoc: FT.Curry<(prop: string, v: any, obj: AnyObject) => {
206
206
  [x: string]: any;
207
207
  }>;
208
208
  export declare const assocPath: any;
209
209
  export declare const all: {
210
- (a: Cond): (b: any[]) => boolean;
211
- (a: Cond, b: any[]): boolean;
212
210
  (a: symbol, b: any[]): (a: Cond) => boolean;
213
211
  (a: Cond, b: symbol): (b: any[]) => boolean;
214
- };
215
- export declare const any: {
216
212
  (a: Cond): (b: any[]) => boolean;
217
213
  (a: Cond, b: any[]): boolean;
214
+ };
215
+ export declare const any: {
218
216
  (a: symbol, b: any[]): (a: Cond) => boolean;
219
217
  (a: Cond, b: symbol): (b: any[]) => boolean;
218
+ (a: Cond): (b: any[]) => boolean;
219
+ (a: Cond, b: any[]): boolean;
220
220
  };
221
221
  export declare const allPass: {
222
- (a: Cond[]): (b: any) => boolean;
223
- (a: Cond[], b: any): boolean;
224
222
  (a: symbol, b: any): (a: Cond[]) => boolean;
225
223
  (a: Cond[], b: symbol): (b: any) => boolean;
226
- };
227
- export declare const anyPass: {
228
224
  (a: Cond[]): (b: any) => boolean;
229
225
  (a: Cond[], b: any): boolean;
226
+ };
227
+ export declare const anyPass: {
230
228
  (a: symbol, b: any): (a: Cond[]) => boolean;
231
229
  (a: Cond[], b: symbol): (b: any) => boolean;
230
+ (a: Cond[]): (b: any) => boolean;
231
+ (a: Cond[], b: any): boolean;
232
232
  };
233
233
  export declare const prop: {
234
- (a: string): (b: AnyObject) => any;
235
- (a: string, b: AnyObject): any;
236
234
  (a: symbol, b: AnyObject): (a: string) => any;
237
235
  (a: string, b: symbol): (b: AnyObject) => any;
236
+ (a: string): (b: AnyObject) => any;
237
+ (a: string, b: AnyObject): any;
238
238
  };
239
239
  export declare const propEq: FT.Curry<(key: string, value: any, o: AnyObject) => boolean>;
240
240
  export declare const propsEq: FT.Curry<(key: string, o1: any, o2: AnyObject) => boolean>;
241
241
  export declare const pathOr: FT.Curry<(_default: any, path: string[], o: any) => any>;
242
242
  export declare const path: FT.Curry<(path: string[], o: any) => any>;
243
- export declare const pathEq: FT.Curry<(_path: string[], value: any, o: AnyObject) => boolean>;
244
- export declare const pathsEq: FT.Curry<(_path: string[], o1: AnyObject, o2: AnyObject) => boolean>;
243
+ export declare const pathEq: FT.Curry<(_path: string[], value: any, o: AnyObject) => (a: any) => boolean>;
244
+ export declare const pathsEq: FT.Curry<(_path: string[], o1: AnyObject, o2: AnyObject) => (a: any) => boolean>;
245
245
  export declare const clone: (s: any, shallow?: boolean) => any;
246
246
  export declare const cloneShallow: (s: any) => any;
247
247
  export declare const reduce: FT.Curry<(fn: Reducer, accum: any, arr: any[]) => FT.Curry<(...p: [
@@ -249,22 +249,22 @@ export declare const reduce: FT.Curry<(fn: Reducer, accum: any, arr: any[]) => F
249
249
  accum: any
250
250
  ]) => any>>;
251
251
  export declare const pickBy: {
252
- (a: Cond): (b: AnyObject) => any;
253
- (a: Cond, b: AnyObject): any;
254
252
  (a: symbol, b: AnyObject): (a: Cond) => any;
255
253
  (a: Cond, b: symbol): (b: AnyObject) => any;
254
+ (a: Cond): (b: AnyObject) => any;
255
+ (a: Cond, b: AnyObject): any;
256
256
  };
257
257
  export declare const pick: {
258
- (a: string[]): (b: AnyObject) => {};
259
- (a: string[], b: AnyObject): {};
260
258
  (a: symbol, b: AnyObject): (a: string[]) => {};
261
259
  (a: string[], b: symbol): (b: AnyObject) => {};
260
+ (a: string[]): (b: AnyObject) => {};
261
+ (a: string[], b: AnyObject): {};
262
262
  };
263
263
  export declare const omit: {
264
- (a: string[]): (b: AnyObject) => any;
265
- (a: string[], b: AnyObject): any;
266
264
  (a: symbol, b: AnyObject): (a: string[]) => any;
267
265
  (a: string[], b: symbol): (b: AnyObject) => any;
266
+ (a: string[]): (b: AnyObject) => any;
267
+ (a: string[], b: AnyObject): any;
268
268
  };
269
269
  export declare const fromPairs: (pairs: [
270
270
  string,
@@ -274,28 +274,28 @@ export declare const fromPairs: (pairs: [
274
274
  accum: any
275
275
  ]) => any>>;
276
276
  export declare const concat: {
277
- (a: string | any[]): (b: string | any[]) => string | any[];
278
- (a: string | any[], b: string | any[]): string | any[];
279
277
  (a: symbol, b: string | any[]): (a: string | any[]) => string | any[];
280
278
  (a: string | any[], b: symbol): (b: string | any[]) => string | any[];
279
+ (a: string | any[]): (b: string | any[]) => string | any[];
280
+ (a: string | any[], b: string | any[]): string | any[];
281
281
  };
282
282
  export declare const join: {
283
- (a: string): (b: string[]) => string;
284
- (a: string, b: string[]): string;
285
283
  (a: symbol, b: string[]): (a: string) => string;
286
284
  (a: string, b: symbol): (b: string[]) => string;
285
+ (a: string): (b: string[]) => string;
286
+ (a: string, b: string[]): string;
287
287
  };
288
288
  export declare const map: {
289
- (a: (s: any) => any): (b: any[]) => any[];
290
- (a: (s: any) => any, b: any[]): any[];
291
289
  (a: symbol, b: any[]): (a: (s: any) => any) => any[];
292
290
  (a: (s: any) => any, b: symbol): (b: any[]) => any[];
291
+ (a: (s: any) => any): (b: any[]) => any[];
292
+ (a: (s: any) => any, b: any[]): any[];
293
293
  };
294
294
  export declare const forEach: {
295
- (a: (s: any) => any): (b: any[]) => void;
296
- (a: (s: any) => any, b: any[]): void;
297
295
  (a: symbol, b: any[]): (a: (s: any) => any) => void;
298
296
  (a: (s: any) => any, b: symbol): (b: any[]) => void;
297
+ (a: (s: any) => any): (b: any[]) => void;
298
+ (a: (s: any) => any, b: any[]): void;
299
299
  };
300
300
  export declare const both: FT.Curry<(cond1: Cond, cond2: Cond, s: any) => boolean>;
301
301
  export declare const isEmpty: (s: any) => boolean | null;
@@ -304,13 +304,13 @@ export declare const replace: FT.Curry<(a: string | RegExp, b: string, where: st
304
304
  export declare const filter: any;
305
305
  export declare const memoize: (fn: Function) => () => any;
306
306
  export declare const mergeShallow: {
307
- (a: AnyObject): (b: AnyObject) => AnyObject;
308
- (a: AnyObject, b: AnyObject): AnyObject;
309
307
  (a: symbol, b: AnyObject): (a: AnyObject) => AnyObject;
310
308
  (a: AnyObject, b: symbol): (b: AnyObject) => AnyObject;
309
+ (a: AnyObject): (b: AnyObject) => AnyObject;
310
+ (a: AnyObject, b: AnyObject): AnyObject;
311
311
  };
312
312
  export declare const mergeDeep: {
313
- (a: AnyObject): (b: AnyObject) => FT.Curry<(...p: [
313
+ (a: symbol, b: AnyObject): (a: AnyObject) => FT.Curry<(...p: [
314
314
  ] | [
315
315
  o1: AnyObject,
316
316
  o2: AnyObject
@@ -319,7 +319,7 @@ export declare const mergeDeep: {
319
319
  ] | [
320
320
  o1: AnyObject
321
321
  ]) => any>;
322
- (a: AnyObject, b: AnyObject): FT.Curry<(...p: [
322
+ (a: AnyObject, b: symbol): (b: AnyObject) => FT.Curry<(...p: [
323
323
  ] | [
324
324
  o1: AnyObject,
325
325
  o2: AnyObject
@@ -328,7 +328,7 @@ export declare const mergeDeep: {
328
328
  ] | [
329
329
  o1: AnyObject
330
330
  ]) => any>;
331
- (a: symbol, b: AnyObject): (a: AnyObject) => FT.Curry<(...p: [
331
+ (a: AnyObject): (b: AnyObject) => FT.Curry<(...p: [
332
332
  ] | [
333
333
  o1: AnyObject,
334
334
  o2: AnyObject
@@ -337,7 +337,7 @@ export declare const mergeDeep: {
337
337
  ] | [
338
338
  o1: AnyObject
339
339
  ]) => any>;
340
- (a: AnyObject, b: symbol): (b: AnyObject) => FT.Curry<(...p: [
340
+ (a: AnyObject, b: AnyObject): FT.Curry<(...p: [
341
341
  ] | [
342
342
  o1: AnyObject,
343
343
  o2: AnyObject
@@ -348,7 +348,7 @@ export declare const mergeDeep: {
348
348
  ]) => any>;
349
349
  };
350
350
  export declare const mergeDeepX: {
351
- (a: AnyObject): (b: AnyObject) => FT.Curry<(...p: [
351
+ (a: symbol, b: AnyObject): (a: AnyObject) => FT.Curry<(...p: [
352
352
  ] | [
353
353
  o1: AnyObject,
354
354
  o2: AnyObject
@@ -357,7 +357,7 @@ export declare const mergeDeepX: {
357
357
  ] | [
358
358
  o1: AnyObject
359
359
  ]) => any>;
360
- (a: AnyObject, b: AnyObject): FT.Curry<(...p: [
360
+ (a: AnyObject, b: symbol): (b: AnyObject) => FT.Curry<(...p: [
361
361
  ] | [
362
362
  o1: AnyObject,
363
363
  o2: AnyObject
@@ -366,7 +366,7 @@ export declare const mergeDeepX: {
366
366
  ] | [
367
367
  o1: AnyObject
368
368
  ]) => any>;
369
- (a: symbol, b: AnyObject): (a: AnyObject) => FT.Curry<(...p: [
369
+ (a: AnyObject): (b: AnyObject) => FT.Curry<(...p: [
370
370
  ] | [
371
371
  o1: AnyObject,
372
372
  o2: AnyObject
@@ -375,7 +375,7 @@ export declare const mergeDeepX: {
375
375
  ] | [
376
376
  o1: AnyObject
377
377
  ]) => any>;
378
- (a: AnyObject, b: symbol): (b: AnyObject) => FT.Curry<(...p: [
378
+ (a: AnyObject, b: AnyObject): FT.Curry<(...p: [
379
379
  ] | [
380
380
  o1: AnyObject,
381
381
  o2: AnyObject
@@ -386,7 +386,7 @@ export declare const mergeDeepX: {
386
386
  ]) => any>;
387
387
  };
388
388
  export declare const mergeDeepAdd: {
389
- (a: AnyObject): (b: AnyObject) => FT.Curry<(...p: [
389
+ (a: symbol, b: AnyObject): (a: AnyObject) => FT.Curry<(...p: [
390
390
  ] | [
391
391
  o1: AnyObject,
392
392
  o2: AnyObject
@@ -395,7 +395,7 @@ export declare const mergeDeepAdd: {
395
395
  ] | [
396
396
  o1: AnyObject
397
397
  ]) => any>;
398
- (a: AnyObject, b: AnyObject): FT.Curry<(...p: [
398
+ (a: AnyObject, b: symbol): (b: AnyObject) => FT.Curry<(...p: [
399
399
  ] | [
400
400
  o1: AnyObject,
401
401
  o2: AnyObject
@@ -404,7 +404,7 @@ export declare const mergeDeepAdd: {
404
404
  ] | [
405
405
  o1: AnyObject
406
406
  ]) => any>;
407
- (a: symbol, b: AnyObject): (a: AnyObject) => FT.Curry<(...p: [
407
+ (a: AnyObject): (b: AnyObject) => FT.Curry<(...p: [
408
408
  ] | [
409
409
  o1: AnyObject,
410
410
  o2: AnyObject
@@ -413,7 +413,7 @@ export declare const mergeDeepAdd: {
413
413
  ] | [
414
414
  o1: AnyObject
415
415
  ]) => any>;
416
- (a: AnyObject, b: symbol): (b: AnyObject) => FT.Curry<(...p: [
416
+ (a: AnyObject, b: AnyObject): FT.Curry<(...p: [
417
417
  ] | [
418
418
  o1: AnyObject,
419
419
  o2: AnyObject
@@ -434,40 +434,40 @@ export declare const overProp: FT.Curry<(prop: string, pipe: AnyFunc, data: any)
434
434
  ]) => any>>;
435
435
  /** mapKeys({ a: 'b' }, { a: 44 }) -> { b: 44 } */
436
436
  export declare const mapKeys: {
437
- (a: {
438
- [oldKey: string]: string;
439
- }): (b: AnyObject) => AnyObject;
440
- (a: {
441
- [oldKey: string]: string;
442
- }, b: AnyObject): AnyObject;
443
437
  (a: symbol, b: AnyObject): (a: {
444
438
  [oldKey: string]: string;
445
439
  }) => AnyObject;
446
440
  (a: {
447
441
  [oldKey: string]: string;
448
442
  }, b: symbol): (b: AnyObject) => AnyObject;
443
+ (a: {
444
+ [oldKey: string]: string;
445
+ }): (b: AnyObject) => AnyObject;
446
+ (a: {
447
+ [oldKey: string]: string;
448
+ }, b: AnyObject): AnyObject;
449
449
  };
450
450
  /** One promise waits for another. */
451
451
  export declare const forEachSerial: {
452
- (a: AnyFunc<any, AnyArgs>): (b: any[]) => Promise<void>;
453
- (a: AnyFunc<any, AnyArgs>, b: any[]): Promise<void>;
454
452
  (a: symbol, b: any[]): (a: AnyFunc<any, AnyArgs>) => Promise<void>;
455
453
  (a: AnyFunc<any, AnyArgs>, b: symbol): (b: any[]) => Promise<void>;
454
+ (a: AnyFunc<any, AnyArgs>): (b: any[]) => Promise<void>;
455
+ (a: AnyFunc<any, AnyArgs>, b: any[]): Promise<void>;
456
456
  };
457
457
  /** Promise.all wrapper for functional pipelining. */
458
458
  export declare const waitAll: (promises: Promise<any>[]) => Promise<any[]>;
459
459
  export declare const waitTap: {
460
- (a: Function): (b: any) => Promise<any>;
461
- (a: Function, b: any): Promise<any>;
462
460
  (a: symbol, b: any): (a: Function) => Promise<any>;
463
461
  (a: Function, b: symbol): (b: any) => Promise<any>;
462
+ (a: Function): (b: any) => Promise<any>;
463
+ (a: Function, b: any): Promise<any>;
464
464
  };
465
465
  /** Waits for all promises mapped by the fn. */
466
466
  export declare const forEachAsync: {
467
- (a: (item: any) => Promise<any>): (b: any[]) => Promise<any[]>;
468
- (a: (item: any) => Promise<any>, b: any[]): Promise<any[]>;
469
467
  (a: symbol, b: any[]): (a: (item: any) => Promise<any>) => Promise<any[]>;
470
468
  (a: (item: any) => Promise<any>, b: symbol): (b: any[]) => Promise<any[]>;
469
+ (a: (item: any) => Promise<any>): (b: any[]) => Promise<any[]>;
470
+ (a: (item: any) => Promise<any>, b: any[]): Promise<any[]>;
471
471
  };
472
472
  /** The same as compose, but waits for promises in chains and returns a Promise. */
473
473
  export declare const composeAsync: import("ts-toolbelt/out/Function/Compose/Multi/Async").ComposeMultiAsync;
@@ -475,10 +475,10 @@ export declare const mirror: (s: any) => any;
475
475
  export declare const reflect: (s: any) => any;
476
476
  export declare const echo: (s: any) => any;
477
477
  export declare const qappend: {
478
- (a: any): (b: any[]) => any[];
479
- (a: any, b: any[]): any[];
480
478
  (a: symbol, b: any[]): (a: any) => any[];
481
479
  (a: any, b: symbol): (b: any[]) => any[];
480
+ (a: any): (b: any[]) => any[];
481
+ (a: any, b: any[]): any[];
482
482
  };
483
483
  export declare const qassoc: import("ts-toolbelt/out/Function/Curry").Curry<(prop: string, v: any, obj: AnyObject) => AnyObject>;
484
484
  export declare const qreduce: import("ts-toolbelt/out/Function/Curry").Curry<(<T>(fn: Reducer, accum: any, arr: T[]) => any)>;
@@ -487,31 +487,31 @@ export declare const qmergeDeepX: import("ts-toolbelt/out/Function/Curry").Curry
487
487
  export declare const qmergeDeepAdd: import("ts-toolbelt/out/Function/Curry").Curry<(o1: AnyObject, o2: AnyObject) => AnyObject>;
488
488
  /** qmapKeys({ a: 'b' }, { a: 44 }) -> { b: 44 } */
489
489
  export declare const qmapKeys: {
490
- (a: {
491
- [oldKey: string]: string;
492
- }): (b: AnyObject) => AnyObject;
493
- (a: {
494
- [oldKey: string]: string;
495
- }, b: AnyObject): AnyObject;
496
490
  (a: symbol, b: AnyObject): (a: {
497
491
  [oldKey: string]: string;
498
492
  }) => AnyObject;
499
493
  (a: {
500
494
  [oldKey: string]: string;
501
495
  }, b: symbol): (b: AnyObject) => AnyObject;
496
+ (a: {
497
+ [oldKey: string]: string;
498
+ }): (b: AnyObject) => AnyObject;
499
+ (a: {
500
+ [oldKey: string]: string;
501
+ }, b: AnyObject): AnyObject;
502
502
  };
503
503
  export declare const qfilter: {
504
- (a: (v: any, k: string | number) => boolean): (b: any[] | AnyObject) => any[] | AnyObject;
505
- (a: (v: any, k: string | number) => boolean, b: any[] | AnyObject): any[] | AnyObject;
506
504
  (a: symbol, b: any[] | AnyObject): (a: (v: any, k: string | number) => boolean) => any[] | AnyObject;
507
505
  (a: (v: any, k: string | number) => boolean, b: symbol): (b: any[] | AnyObject) => any[] | AnyObject;
506
+ (a: (v: any, k: string | number) => boolean): (b: any[] | AnyObject) => any[] | AnyObject;
507
+ (a: (v: any, k: string | number) => boolean, b: any[] | AnyObject): any[] | AnyObject;
508
508
  };
509
509
  /** @deprecated */
510
510
  export declare const qindexOf: {
511
- (a: any): (b: any[]) => number;
512
- (a: any, b: any[]): number;
513
511
  (a: symbol, b: any[]): (a: any) => number;
514
512
  (a: any, b: symbol): (b: any[]) => number;
513
+ (a: any): (b: any[]) => number;
514
+ (a: any, b: any[]): number;
515
515
  };
516
516
  export type StrTmpl = ((data: AnyObject) => string);
517
517
  export declare const getTmpl: (tmpl: string) => StrTmpl;
package/package.json CHANGED
@@ -40,7 +40,7 @@
40
40
  "prod": "npm run gentypes && npm run prod:es && npm run prod:cjs",
41
41
  "all": "npm run dev && npm run prod"
42
42
  },
43
- "version": "0.13.0b3",
43
+ "version": "0.13.0b4",
44
44
  "ava": {
45
45
  "files": [
46
46
  "./test/specs/*.ts"
package/src/curry.ts CHANGED
@@ -68,10 +68,10 @@ export function curry2<Func extends Func2>(fn: Func) {
68
68
  type p0 = Parameters<Func>[0]
69
69
  type p1 = Parameters<Func>[1]
70
70
  type ReturnT = ReturnType<Func>
71
- function curried2( a: p0 ): (b: p1) => ReturnT
72
- function curried2( a: p0, b: p1 ): ReturnT
73
71
  function curried2( a: Placeholder, b: p1 ): (a: p0) => ReturnT
74
72
  function curried2( a: p0, b: Placeholder ): (b: p1) => ReturnT
73
+ function curried2( a: p0 ): (b: p1) => ReturnT
74
+ function curried2( a: p0, b: p1 ): ReturnT
75
75
  function curried2( a: p0 | Placeholder, b?: p1 ) {
76
76
  const withPlaceholder1 = a===__
77
77
  const aln = arguments.length
package/src/index.ts CHANGED
@@ -4,5 +4,4 @@ export * from './uncurry'
4
4
  export * from './common'
5
5
  export * from './safe'
6
6
  export * from './quick'
7
- export * from './strings'
8
- export {__} from './curry'
7
+ export * from './strings'