pepka 0.13.0-b2 → 0.13.0-b3

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
@@ -1,4 +1,5 @@
1
- import {F as FT} from 'ts-toolbelt'
1
+ import {F as FT} from 'ts-toolbelt'
2
+ export { __ }
2
3
 
3
4
  // Generated by dts-bundle-generator v7.1.0
4
5
 
@@ -10,8 +11,8 @@ export type AnyArgs = any[];
10
11
  export type Curried<Args extends AnyArgs = AnyArgs, ReturnT = any> = (arg: Args[number]) => Curried<Args> | ReturnT;
11
12
  export type Reducer = <T = any>(accum: T, cur: any, index: number) => T;
12
13
  export type AnyFunc<ReturnT = any, Args extends AnyArgs = AnyArgs> = (...args: Args) => ReturnT;
13
- declare const __: unique symbol;
14
- export type Placeholder = typeof __;
14
+ export type Placeholder = symbol;
15
+ declare const __: Placeholder;
15
16
  export declare const curry: <Func extends AnyFunc<any, AnyArgs>>(fn: AnyFunc) => FT.Curry<Func>;
16
17
  export type Func2 = (a: any, b: any) => any;
17
18
  export declare function curry2<Func extends Func2>(fn: Func): {
@@ -29,8 +30,8 @@ export declare const type: (s: any) => any;
29
30
  export declare const equals: {
30
31
  (a: any): (b: any) => boolean;
31
32
  (a: any, b: any): boolean;
32
- (a: typeof __, b: any): (a: any) => boolean;
33
- (a: any, b: typeof __): (b: any) => boolean;
33
+ (a: symbol, b: any): (a: any) => boolean;
34
+ (a: any, b: symbol): (b: any) => boolean;
34
35
  };
35
36
  export declare const ifElse: FT.Curry<AnyFunc<any, AnyArgs>>;
36
37
  export declare const when: FT.Curry<(cond: (s: any) => boolean, pipe: (s: any) => any, s: any) => any>;
@@ -38,20 +39,20 @@ export declare const compose: FT.Compose;
38
39
  export declare const bind: {
39
40
  (a: any): (b: any) => any;
40
41
  (a: any, b: any): any;
41
- (a: typeof __, b: any): (a: any) => any;
42
- (a: any, b: typeof __): (b: any) => any;
42
+ (a: symbol, b: any): (a: any) => any;
43
+ (a: any, b: symbol): (b: any) => any;
43
44
  };
44
45
  export declare const nth: {
45
46
  (a: number): (b: unknown[]) => unknown;
46
47
  (a: number, b: unknown[]): unknown;
47
- (a: typeof __, b: unknown[]): (a: number) => unknown;
48
- (a: number, b: typeof __): (b: unknown[]) => unknown;
48
+ (a: symbol, b: unknown[]): (a: number) => unknown;
49
+ (a: number, b: symbol): (b: unknown[]) => unknown;
49
50
  };
50
51
  export declare const includes: {
51
52
  (a: unknown): (b: unknown[]) => boolean;
52
53
  (a: unknown, b: unknown[]): boolean;
53
- (a: typeof __, b: unknown[]): (a: unknown) => boolean;
54
- (a: unknown, b: typeof __): (b: unknown[]) => boolean;
54
+ (a: symbol, b: unknown[]): (a: unknown) => boolean;
55
+ (a: unknown, b: symbol): (b: unknown[]) => boolean;
55
56
  };
56
57
  export declare const slice: FT.Curry<(from: number, to: number, o: any[] | string) => string | any[]>;
57
58
  export declare const head: (b: unknown[]) => unknown;
@@ -59,14 +60,14 @@ export declare const tail: FT.Curry<(o: string | any[]) => string | any[]>;
59
60
  export declare const add: {
60
61
  (a: number): (b: number) => number;
61
62
  (a: number, b: number): number;
62
- (a: typeof __, b: number): (a: number) => number;
63
- (a: number, b: typeof __): (b: number) => number;
63
+ (a: symbol, b: number): (a: number) => number;
64
+ (a: number, b: symbol): (b: number) => number;
64
65
  };
65
66
  export declare const subtract: {
66
67
  (a: number): (b: number) => number;
67
68
  (a: number, b: number): number;
68
- (a: typeof __, b: number): (a: number) => number;
69
- (a: number, b: typeof __): (b: number) => number;
69
+ (a: symbol, b: number): (a: number) => number;
70
+ (a: number, b: symbol): (b: number) => number;
70
71
  };
71
72
  export declare const flip: (fn: Function) => FT.Curry<AnyFunc<any, AnyArgs>>;
72
73
  export declare const isNil: (s: any) => boolean;
@@ -86,26 +87,26 @@ export declare const toPairs: (o: AnyObject | any[]) => [
86
87
  export declare const test: {
87
88
  (a: RegExp): (b: string) => boolean;
88
89
  (a: RegExp, b: string): boolean;
89
- (a: typeof __, b: string): (a: RegExp) => boolean;
90
- (a: RegExp, b: typeof __): (b: string) => boolean;
90
+ (a: symbol, b: string): (a: RegExp) => boolean;
91
+ (a: RegExp, b: symbol): (b: string) => boolean;
91
92
  };
92
93
  export declare const tap: {
93
94
  (a: Function): (b: any) => any;
94
95
  (a: Function, b: any): any;
95
- (a: typeof __, b: any): (a: Function) => any;
96
- (a: Function, b: typeof __): (b: any) => any;
96
+ (a: symbol, b: any): (a: Function) => any;
97
+ (a: Function, b: symbol): (b: any) => any;
97
98
  };
98
99
  export declare const append: {
99
100
  (a: any): (b: any[]) => any[];
100
101
  (a: any, b: any[]): any[];
101
- (a: typeof __, b: any[]): (a: any) => any[];
102
- (a: any, b: typeof __): (b: any[]) => any[];
102
+ (a: symbol, b: any[]): (a: any) => any[];
103
+ (a: any, b: symbol): (b: any[]) => any[];
103
104
  };
104
105
  export declare const split: {
105
106
  (a: string): (b: string) => string[];
106
107
  (a: string, b: string): string[];
107
- (a: typeof __, b: string): (a: string) => string[];
108
- (a: string, b: typeof __): (b: string) => string[];
108
+ (a: symbol, b: string): (a: string) => string[];
109
+ (a: string, b: symbol): (b: string) => string[];
109
110
  };
110
111
  export declare const T: (...args: any[]) => true;
111
112
  export declare const F: (...args: any[]) => false;
@@ -113,21 +114,21 @@ export declare const sizeof: (s: any[] | string | AnyObject) => number;
113
114
  export declare const range: {
114
115
  (a: number): (b: number) => any[];
115
116
  (a: number, b: number): any[];
116
- (a: typeof __, b: number): (a: number) => any[];
117
- (a: number, b: typeof __): (b: number) => any[];
117
+ (a: symbol, b: number): (a: number) => any[];
118
+ (a: number, b: symbol): (b: number) => any[];
118
119
  };
119
120
  export declare const uniq: (xs: any[]) => any;
120
121
  export declare const intersection: {
121
122
  (a: any[]): (b: any[]) => any[];
122
123
  (a: any[], b: any[]): any[];
123
- (a: typeof __, b: any[]): (a: any[]) => any[];
124
- (a: any[], b: typeof __): (b: any[]) => any[];
124
+ (a: symbol, b: any[]): (a: any[]) => any[];
125
+ (a: any[], b: symbol): (b: any[]) => any[];
125
126
  };
126
127
  export declare const genBy: {
127
128
  (a: (i: number) => any): (b: number) => any[];
128
129
  (a: (i: number) => any, b: number): any[];
129
- (a: typeof __, b: number): (a: (i: number) => any) => any[];
130
- (a: (i: number) => any, b: typeof __): (b: number) => any[];
130
+ (a: symbol, b: number): (a: (i: number) => any) => any[];
131
+ (a: (i: number) => any, b: symbol): (b: number) => any[];
131
132
  };
132
133
  export declare const once: <Func extends AnyFunc<any, AnyArgs>>(fn: Func) => (...args: Parameters<Func>) => any;
133
134
  export declare const reverse: (xs: any[]) => FT.Curry<(fn: Reducer, accum: any, arr: any[]) => FT.Curry<(...p: [
@@ -137,50 +138,50 @@ export declare const reverse: (xs: any[]) => FT.Curry<(fn: Reducer, accum: any,
137
138
  export declare const gt: {
138
139
  (a: number): (b: number) => boolean;
139
140
  (a: number, b: number): boolean;
140
- (a: typeof __, b: number): (a: number) => boolean;
141
- (a: number, b: typeof __): (b: number) => boolean;
141
+ (a: symbol, b: number): (a: number) => boolean;
142
+ (a: number, b: symbol): (b: number) => boolean;
142
143
  };
143
144
  export declare const lt: {
144
145
  (a: number): (b: number) => boolean;
145
146
  (a: number, b: number): boolean;
146
- (a: typeof __, b: number): (a: number) => boolean;
147
- (a: number, b: typeof __): (b: number) => boolean;
147
+ (a: symbol, b: number): (a: number) => boolean;
148
+ (a: number, b: symbol): (b: number) => boolean;
148
149
  };
149
150
  export declare const gte: {
150
151
  (a: number): (b: number) => boolean;
151
152
  (a: number, b: number): boolean;
152
- (a: typeof __, b: number): (a: number) => boolean;
153
- (a: number, b: typeof __): (b: number) => boolean;
153
+ (a: symbol, b: number): (a: number) => boolean;
154
+ (a: number, b: symbol): (b: number) => boolean;
154
155
  };
155
156
  export declare const lte: {
156
157
  (a: number): (b: number) => boolean;
157
158
  (a: number, b: number): boolean;
158
- (a: typeof __, b: number): (a: number) => boolean;
159
- (a: number, b: typeof __): (b: number) => boolean;
159
+ (a: symbol, b: number): (a: number) => boolean;
160
+ (a: number, b: symbol): (b: number) => boolean;
160
161
  };
161
162
  export declare const sort: {
162
163
  (a: any): (b: any[]) => any[];
163
164
  (a: any, b: any[]): any[];
164
- (a: typeof __, b: any[]): (a: any) => any[];
165
- (a: any, b: typeof __): (b: any[]) => any[];
165
+ (a: symbol, b: any[]): (a: any) => any[];
166
+ (a: any, b: symbol): (b: any[]) => any[];
166
167
  };
167
168
  export declare const find: {
168
169
  (a: Cond): (b: any[]) => any;
169
170
  (a: Cond, b: any[]): any;
170
- (a: typeof __, b: any[]): (a: Cond) => any;
171
- (a: Cond, b: typeof __): (b: any[]) => any;
171
+ (a: symbol, b: any[]): (a: Cond) => any;
172
+ (a: Cond, b: symbol): (b: any[]) => any;
172
173
  };
173
174
  export declare const findIndex: {
174
175
  (a: Cond): (b: any[]) => number;
175
176
  (a: Cond, b: any[]): number;
176
- (a: typeof __, b: any[]): (a: Cond) => number;
177
- (a: Cond, b: typeof __): (b: any[]) => number;
177
+ (a: symbol, b: any[]): (a: Cond) => number;
178
+ (a: Cond, b: symbol): (b: any[]) => number;
178
179
  };
179
180
  export declare const indexOf: {
180
181
  (a: any): (b: any[]) => number;
181
182
  (a: any, b: any[]): number;
182
- (a: typeof __, b: any[]): (a: any) => number;
183
- (a: any, b: typeof __): (b: any[]) => number;
183
+ (a: symbol, b: any[]): (a: any) => number;
184
+ (a: any, b: symbol): (b: any[]) => number;
184
185
  };
185
186
  export declare const explore: (caption: string, level?: string) => (b: any) => any;
186
187
  export declare const cond: {
@@ -192,14 +193,14 @@ export declare const cond: {
192
193
  Cond,
193
194
  Function
194
195
  ][], b: any): any;
195
- (a: typeof __, b: any): (a: [
196
+ (a: symbol, b: any): (a: [
196
197
  Cond,
197
198
  Function
198
199
  ][]) => any;
199
200
  (a: [
200
201
  Cond,
201
202
  Function
202
- ][], b: typeof __): (b: any) => any;
203
+ ][], b: symbol): (b: any) => any;
203
204
  };
204
205
  export declare const assoc: FT.Curry<(prop: string, v: any, obj: AnyObject) => {
205
206
  [x: string]: any;
@@ -208,32 +209,32 @@ export declare const assocPath: any;
208
209
  export declare const all: {
209
210
  (a: Cond): (b: any[]) => boolean;
210
211
  (a: Cond, b: any[]): boolean;
211
- (a: typeof __, b: any[]): (a: Cond) => boolean;
212
- (a: Cond, b: typeof __): (b: any[]) => boolean;
212
+ (a: symbol, b: any[]): (a: Cond) => boolean;
213
+ (a: Cond, b: symbol): (b: any[]) => boolean;
213
214
  };
214
215
  export declare const any: {
215
216
  (a: Cond): (b: any[]) => boolean;
216
217
  (a: Cond, b: any[]): boolean;
217
- (a: typeof __, b: any[]): (a: Cond) => boolean;
218
- (a: Cond, b: typeof __): (b: any[]) => boolean;
218
+ (a: symbol, b: any[]): (a: Cond) => boolean;
219
+ (a: Cond, b: symbol): (b: any[]) => boolean;
219
220
  };
220
221
  export declare const allPass: {
221
222
  (a: Cond[]): (b: any) => boolean;
222
223
  (a: Cond[], b: any): boolean;
223
- (a: typeof __, b: any): (a: Cond[]) => boolean;
224
- (a: Cond[], b: typeof __): (b: any) => boolean;
224
+ (a: symbol, b: any): (a: Cond[]) => boolean;
225
+ (a: Cond[], b: symbol): (b: any) => boolean;
225
226
  };
226
227
  export declare const anyPass: {
227
228
  (a: Cond[]): (b: any) => boolean;
228
229
  (a: Cond[], b: any): boolean;
229
- (a: typeof __, b: any): (a: Cond[]) => boolean;
230
- (a: Cond[], b: typeof __): (b: any) => boolean;
230
+ (a: symbol, b: any): (a: Cond[]) => boolean;
231
+ (a: Cond[], b: symbol): (b: any) => boolean;
231
232
  };
232
233
  export declare const prop: {
233
234
  (a: string): (b: AnyObject) => any;
234
235
  (a: string, b: AnyObject): any;
235
- (a: typeof __, b: AnyObject): (a: string) => any;
236
- (a: string, b: typeof __): (b: AnyObject) => any;
236
+ (a: symbol, b: AnyObject): (a: string) => any;
237
+ (a: string, b: symbol): (b: AnyObject) => any;
237
238
  };
238
239
  export declare const propEq: FT.Curry<(key: string, value: any, o: AnyObject) => boolean>;
239
240
  export declare const propsEq: FT.Curry<(key: string, o1: any, o2: AnyObject) => boolean>;
@@ -250,20 +251,20 @@ export declare const reduce: FT.Curry<(fn: Reducer, accum: any, arr: any[]) => F
250
251
  export declare const pickBy: {
251
252
  (a: Cond): (b: AnyObject) => any;
252
253
  (a: Cond, b: AnyObject): any;
253
- (a: typeof __, b: AnyObject): (a: Cond) => any;
254
- (a: Cond, b: typeof __): (b: AnyObject) => any;
254
+ (a: symbol, b: AnyObject): (a: Cond) => any;
255
+ (a: Cond, b: symbol): (b: AnyObject) => any;
255
256
  };
256
257
  export declare const pick: {
257
258
  (a: string[]): (b: AnyObject) => {};
258
259
  (a: string[], b: AnyObject): {};
259
- (a: typeof __, b: AnyObject): (a: string[]) => {};
260
- (a: string[], b: typeof __): (b: AnyObject) => {};
260
+ (a: symbol, b: AnyObject): (a: string[]) => {};
261
+ (a: string[], b: symbol): (b: AnyObject) => {};
261
262
  };
262
263
  export declare const omit: {
263
264
  (a: string[]): (b: AnyObject) => any;
264
265
  (a: string[], b: AnyObject): any;
265
- (a: typeof __, b: AnyObject): (a: string[]) => any;
266
- (a: string[], b: typeof __): (b: AnyObject) => any;
266
+ (a: symbol, b: AnyObject): (a: string[]) => any;
267
+ (a: string[], b: symbol): (b: AnyObject) => any;
267
268
  };
268
269
  export declare const fromPairs: (pairs: [
269
270
  string,
@@ -275,26 +276,26 @@ export declare const fromPairs: (pairs: [
275
276
  export declare const concat: {
276
277
  (a: string | any[]): (b: string | any[]) => string | any[];
277
278
  (a: string | any[], b: string | any[]): string | any[];
278
- (a: typeof __, b: string | any[]): (a: string | any[]) => string | any[];
279
- (a: string | any[], b: typeof __): (b: string | any[]) => string | any[];
279
+ (a: symbol, b: string | any[]): (a: string | any[]) => string | any[];
280
+ (a: string | any[], b: symbol): (b: string | any[]) => string | any[];
280
281
  };
281
282
  export declare const join: {
282
283
  (a: string): (b: string[]) => string;
283
284
  (a: string, b: string[]): string;
284
- (a: typeof __, b: string[]): (a: string) => string;
285
- (a: string, b: typeof __): (b: string[]) => string;
285
+ (a: symbol, b: string[]): (a: string) => string;
286
+ (a: string, b: symbol): (b: string[]) => string;
286
287
  };
287
288
  export declare const map: {
288
289
  (a: (s: any) => any): (b: any[]) => any[];
289
290
  (a: (s: any) => any, b: any[]): any[];
290
- (a: typeof __, b: any[]): (a: (s: any) => any) => any[];
291
- (a: (s: any) => any, b: typeof __): (b: any[]) => any[];
291
+ (a: symbol, b: any[]): (a: (s: any) => any) => any[];
292
+ (a: (s: any) => any, b: symbol): (b: any[]) => any[];
292
293
  };
293
294
  export declare const forEach: {
294
295
  (a: (s: any) => any): (b: any[]) => void;
295
296
  (a: (s: any) => any, b: any[]): void;
296
- (a: typeof __, b: any[]): (a: (s: any) => any) => void;
297
- (a: (s: any) => any, b: typeof __): (b: any[]) => void;
297
+ (a: symbol, b: any[]): (a: (s: any) => any) => void;
298
+ (a: (s: any) => any, b: symbol): (b: any[]) => void;
298
299
  };
299
300
  export declare const both: FT.Curry<(cond1: Cond, cond2: Cond, s: any) => boolean>;
300
301
  export declare const isEmpty: (s: any) => boolean | null;
@@ -305,8 +306,8 @@ export declare const memoize: (fn: Function) => () => any;
305
306
  export declare const mergeShallow: {
306
307
  (a: AnyObject): (b: AnyObject) => AnyObject;
307
308
  (a: AnyObject, b: AnyObject): AnyObject;
308
- (a: typeof __, b: AnyObject): (a: AnyObject) => AnyObject;
309
- (a: AnyObject, b: typeof __): (b: AnyObject) => AnyObject;
309
+ (a: symbol, b: AnyObject): (a: AnyObject) => AnyObject;
310
+ (a: AnyObject, b: symbol): (b: AnyObject) => AnyObject;
310
311
  };
311
312
  export declare const mergeDeep: {
312
313
  (a: AnyObject): (b: AnyObject) => FT.Curry<(...p: [
@@ -327,7 +328,7 @@ export declare const mergeDeep: {
327
328
  ] | [
328
329
  o1: AnyObject
329
330
  ]) => any>;
330
- (a: typeof __, b: AnyObject): (a: AnyObject) => FT.Curry<(...p: [
331
+ (a: symbol, b: AnyObject): (a: AnyObject) => FT.Curry<(...p: [
331
332
  ] | [
332
333
  o1: AnyObject,
333
334
  o2: AnyObject
@@ -336,7 +337,7 @@ export declare const mergeDeep: {
336
337
  ] | [
337
338
  o1: AnyObject
338
339
  ]) => any>;
339
- (a: AnyObject, b: typeof __): (b: AnyObject) => FT.Curry<(...p: [
340
+ (a: AnyObject, b: symbol): (b: AnyObject) => FT.Curry<(...p: [
340
341
  ] | [
341
342
  o1: AnyObject,
342
343
  o2: AnyObject
@@ -365,7 +366,7 @@ export declare const mergeDeepX: {
365
366
  ] | [
366
367
  o1: AnyObject
367
368
  ]) => any>;
368
- (a: typeof __, b: AnyObject): (a: AnyObject) => FT.Curry<(...p: [
369
+ (a: symbol, b: AnyObject): (a: AnyObject) => FT.Curry<(...p: [
369
370
  ] | [
370
371
  o1: AnyObject,
371
372
  o2: AnyObject
@@ -374,7 +375,7 @@ export declare const mergeDeepX: {
374
375
  ] | [
375
376
  o1: AnyObject
376
377
  ]) => any>;
377
- (a: AnyObject, b: typeof __): (b: AnyObject) => FT.Curry<(...p: [
378
+ (a: AnyObject, b: symbol): (b: AnyObject) => FT.Curry<(...p: [
378
379
  ] | [
379
380
  o1: AnyObject,
380
381
  o2: AnyObject
@@ -403,7 +404,7 @@ export declare const mergeDeepAdd: {
403
404
  ] | [
404
405
  o1: AnyObject
405
406
  ]) => any>;
406
- (a: typeof __, b: AnyObject): (a: AnyObject) => FT.Curry<(...p: [
407
+ (a: symbol, b: AnyObject): (a: AnyObject) => FT.Curry<(...p: [
407
408
  ] | [
408
409
  o1: AnyObject,
409
410
  o2: AnyObject
@@ -412,7 +413,7 @@ export declare const mergeDeepAdd: {
412
413
  ] | [
413
414
  o1: AnyObject
414
415
  ]) => any>;
415
- (a: AnyObject, b: typeof __): (b: AnyObject) => FT.Curry<(...p: [
416
+ (a: AnyObject, b: symbol): (b: AnyObject) => FT.Curry<(...p: [
416
417
  ] | [
417
418
  o1: AnyObject,
418
419
  o2: AnyObject
@@ -439,34 +440,34 @@ export declare const mapKeys: {
439
440
  (a: {
440
441
  [oldKey: string]: string;
441
442
  }, b: AnyObject): AnyObject;
442
- (a: typeof __, b: AnyObject): (a: {
443
+ (a: symbol, b: AnyObject): (a: {
443
444
  [oldKey: string]: string;
444
445
  }) => AnyObject;
445
446
  (a: {
446
447
  [oldKey: string]: string;
447
- }, b: typeof __): (b: AnyObject) => AnyObject;
448
+ }, b: symbol): (b: AnyObject) => AnyObject;
448
449
  };
449
450
  /** One promise waits for another. */
450
451
  export declare const forEachSerial: {
451
452
  (a: AnyFunc<any, AnyArgs>): (b: any[]) => Promise<void>;
452
453
  (a: AnyFunc<any, AnyArgs>, b: any[]): Promise<void>;
453
- (a: typeof __, b: any[]): (a: AnyFunc<any, AnyArgs>) => Promise<void>;
454
- (a: AnyFunc<any, AnyArgs>, b: typeof __): (b: any[]) => Promise<void>;
454
+ (a: symbol, b: any[]): (a: AnyFunc<any, AnyArgs>) => Promise<void>;
455
+ (a: AnyFunc<any, AnyArgs>, b: symbol): (b: any[]) => Promise<void>;
455
456
  };
456
457
  /** Promise.all wrapper for functional pipelining. */
457
458
  export declare const waitAll: (promises: Promise<any>[]) => Promise<any[]>;
458
459
  export declare const waitTap: {
459
460
  (a: Function): (b: any) => Promise<any>;
460
461
  (a: Function, b: any): Promise<any>;
461
- (a: typeof __, b: any): (a: Function) => Promise<any>;
462
- (a: Function, b: typeof __): (b: any) => Promise<any>;
462
+ (a: symbol, b: any): (a: Function) => Promise<any>;
463
+ (a: Function, b: symbol): (b: any) => Promise<any>;
463
464
  };
464
465
  /** Waits for all promises mapped by the fn. */
465
466
  export declare const forEachAsync: {
466
467
  (a: (item: any) => Promise<any>): (b: any[]) => Promise<any[]>;
467
468
  (a: (item: any) => Promise<any>, b: any[]): Promise<any[]>;
468
- (a: typeof __, b: any[]): (a: (item: any) => Promise<any>) => Promise<any[]>;
469
- (a: (item: any) => Promise<any>, b: typeof __): (b: any[]) => Promise<any[]>;
469
+ (a: symbol, b: any[]): (a: (item: any) => Promise<any>) => Promise<any[]>;
470
+ (a: (item: any) => Promise<any>, b: symbol): (b: any[]) => Promise<any[]>;
470
471
  };
471
472
  /** The same as compose, but waits for promises in chains and returns a Promise. */
472
473
  export declare const composeAsync: import("ts-toolbelt/out/Function/Compose/Multi/Async").ComposeMultiAsync;
@@ -476,8 +477,8 @@ export declare const echo: (s: any) => any;
476
477
  export declare const qappend: {
477
478
  (a: any): (b: any[]) => any[];
478
479
  (a: any, b: any[]): any[];
479
- (a: typeof __, b: any[]): (a: any) => any[];
480
- (a: any, b: typeof __): (b: any[]) => any[];
480
+ (a: symbol, b: any[]): (a: any) => any[];
481
+ (a: any, b: symbol): (b: any[]) => any[];
481
482
  };
482
483
  export declare const qassoc: import("ts-toolbelt/out/Function/Curry").Curry<(prop: string, v: any, obj: AnyObject) => AnyObject>;
483
484
  export declare const qreduce: import("ts-toolbelt/out/Function/Curry").Curry<(<T>(fn: Reducer, accum: any, arr: T[]) => any)>;
@@ -492,25 +493,25 @@ export declare const qmapKeys: {
492
493
  (a: {
493
494
  [oldKey: string]: string;
494
495
  }, b: AnyObject): AnyObject;
495
- (a: typeof __, b: AnyObject): (a: {
496
+ (a: symbol, b: AnyObject): (a: {
496
497
  [oldKey: string]: string;
497
498
  }) => AnyObject;
498
499
  (a: {
499
500
  [oldKey: string]: string;
500
- }, b: typeof __): (b: AnyObject) => AnyObject;
501
+ }, b: symbol): (b: AnyObject) => AnyObject;
501
502
  };
502
503
  export declare const qfilter: {
503
504
  (a: (v: any, k: string | number) => boolean): (b: any[] | AnyObject) => any[] | AnyObject;
504
505
  (a: (v: any, k: string | number) => boolean, b: any[] | AnyObject): any[] | AnyObject;
505
- (a: typeof __, b: any[] | AnyObject): (a: (v: any, k: string | number) => boolean) => any[] | AnyObject;
506
- (a: (v: any, k: string | number) => boolean, b: typeof __): (b: any[] | AnyObject) => any[] | AnyObject;
506
+ (a: symbol, b: any[] | AnyObject): (a: (v: any, k: string | number) => boolean) => any[] | AnyObject;
507
+ (a: (v: any, k: string | number) => boolean, b: symbol): (b: any[] | AnyObject) => any[] | AnyObject;
507
508
  };
508
509
  /** @deprecated */
509
510
  export declare const qindexOf: {
510
511
  (a: any): (b: any[]) => number;
511
512
  (a: any, b: any[]): number;
512
- (a: typeof __, b: any[]): (a: any) => number;
513
- (a: any, b: typeof __): (b: any[]) => number;
513
+ (a: symbol, b: any[]): (a: any) => number;
514
+ (a: any, b: symbol): (b: any[]) => number;
514
515
  };
515
516
  export type StrTmpl = ((data: AnyObject) => string);
516
517
  export declare const getTmpl: (tmpl: string) => StrTmpl;
package/dist/es/index.js CHANGED
@@ -4,3 +4,4 @@ export * from './common';
4
4
  export * from './safe';
5
5
  export * from './quick';
6
6
  export * from './strings';
7
+ export { __ } from './curry';
package/dts-fix.js CHANGED
@@ -1,6 +1,9 @@
1
1
  import prepend from 'prepend'
2
2
   
3
- const s = "import {F as FT} from 'ts-toolbelt' \n"
3
+ const s =
4
+ `import {F as FT} from 'ts-toolbelt'
5
+ export { __ }
6
+ `
4
7
 
5
8
  prepend('./dist/bundle.d.ts', s, function(error) {
6
9
      if (error)
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.0b2",
43
+ "version": "0.13.0b3",
44
44
  "ava": {
45
45
  "files": [
46
46
  "./test/specs/*.ts"
package/src/curry.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { F as FT } from 'ts-toolbelt'
2
2
  import { AnyFunc, AnyArgs } from "./types"
3
3
 
4
- export const __ = Symbol('Placeholder')
5
- type Placeholder = typeof __
4
+ type Placeholder = symbol
5
+ export const __: Placeholder = Symbol('Placeholder')
6
6
 
7
7
  const countArgs = (s: AnyArgs) => {
8
8
  let i = 0
package/src/index.ts CHANGED
@@ -4,4 +4,5 @@ export * from './uncurry'
4
4
  export * from './common'
5
5
  export * from './safe'
6
6
  export * from './quick'
7
- export * from './strings'
7
+ export * from './strings'
8
+ export {__} from './curry'