1 | import _ = require("../index");
|
2 | declare module "../index" {
|
3 | interface LoDashStatic {
|
4 | |
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | assign<TObject, TSource>(object: TObject, source: TSource): TObject & TSource;
|
33 | |
34 |
|
35 |
|
36 | assign<TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2): TObject & TSource1 & TSource2;
|
37 | |
38 |
|
39 |
|
40 | assign<TObject, TSource1, TSource2, TSource3>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3): TObject & TSource1 & TSource2 & TSource3;
|
41 | |
42 |
|
43 |
|
44 | assign<TObject, TSource1, TSource2, TSource3, TSource4>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): TObject & TSource1 & TSource2 & TSource3 & TSource4;
|
45 | |
46 |
|
47 |
|
48 | assign<TObject>(object: TObject): TObject;
|
49 | |
50 |
|
51 |
|
52 | assign(object: any, ...otherArgs: any[]): any;
|
53 | }
|
54 | interface Object<T> {
|
55 | |
56 |
|
57 |
|
58 | assign<TSource>(source: TSource): Object<T & TSource>;
|
59 | |
60 |
|
61 |
|
62 | assign<TSource1, TSource2>(source1: TSource1, source2: TSource2): Object<T & TSource1 & TSource2>;
|
63 | |
64 |
|
65 |
|
66 | assign<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3): Object<T & TSource1 & TSource2 & TSource3>;
|
67 | |
68 |
|
69 |
|
70 | assign<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): Object<T & TSource1 & TSource2 & TSource3 & TSource4>;
|
71 | |
72 |
|
73 |
|
74 | assign(): Object<T>;
|
75 | |
76 |
|
77 |
|
78 | assign(...otherArgs: any[]): Object<any>;
|
79 | }
|
80 | interface ObjectChain<T> {
|
81 | |
82 |
|
83 |
|
84 | assign<TSource>(source: TSource): ObjectChain<T & TSource>;
|
85 | |
86 |
|
87 |
|
88 | assign<TSource1, TSource2>(source1: TSource1, source2: TSource2): ObjectChain<T & TSource1 & TSource2>;
|
89 | |
90 |
|
91 |
|
92 | assign<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3): ObjectChain<T & TSource1 & TSource2 & TSource3>;
|
93 | |
94 |
|
95 |
|
96 | assign<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): ObjectChain<T & TSource1 & TSource2 & TSource3 & TSource4>;
|
97 | |
98 |
|
99 |
|
100 | assign(): ObjectChain<T>;
|
101 | |
102 |
|
103 |
|
104 | assign(...otherArgs: any[]): ObjectChain<any>;
|
105 | }
|
106 | interface LoDashStatic {
|
107 | |
108 |
|
109 |
|
110 |
|
111 |
|
112 |
|
113 |
|
114 |
|
115 |
|
116 |
|
117 |
|
118 |
|
119 |
|
120 |
|
121 |
|
122 |
|
123 |
|
124 |
|
125 |
|
126 |
|
127 |
|
128 |
|
129 |
|
130 |
|
131 |
|
132 |
|
133 |
|
134 | assignIn<TObject, TSource>(object: TObject, source: TSource): TObject & TSource;
|
135 | |
136 |
|
137 |
|
138 | assignIn<TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2): TObject & TSource1 & TSource2;
|
139 | |
140 |
|
141 |
|
142 | assignIn<TObject, TSource1, TSource2, TSource3>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3): TObject & TSource1 & TSource2 & TSource3;
|
143 | |
144 |
|
145 |
|
146 | assignIn<TObject, TSource1, TSource2, TSource3, TSource4>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): TObject & TSource1 & TSource2 & TSource3 & TSource4;
|
147 | |
148 |
|
149 |
|
150 | assignIn<TObject>(object: TObject): TObject;
|
151 | |
152 |
|
153 |
|
154 | assignIn<TResult>(object: any, ...otherArgs: any[]): TResult;
|
155 | }
|
156 | interface Object<T> {
|
157 | |
158 |
|
159 |
|
160 | assignIn<TSource>(source: TSource): Object<T & TSource>;
|
161 | |
162 |
|
163 |
|
164 | assignIn<TSource1, TSource2>(source1: TSource1, source2: TSource2): Object<T & TSource1 & TSource2>;
|
165 | |
166 |
|
167 |
|
168 | assignIn<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3): Object<T & TSource1 & TSource2 & TSource3>;
|
169 | |
170 |
|
171 |
|
172 | assignIn<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): Object<T & TSource1 & TSource2 & TSource3 & TSource4>;
|
173 | |
174 |
|
175 |
|
176 | assignIn(): Object<T>;
|
177 | |
178 |
|
179 |
|
180 | assignIn<TResult>(...otherArgs: any[]): Object<TResult>;
|
181 | }
|
182 | interface ObjectChain<T> {
|
183 | |
184 |
|
185 |
|
186 | assignIn<TSource>(source: TSource): ObjectChain<T & TSource>;
|
187 | |
188 |
|
189 |
|
190 | assignIn<TSource1, TSource2>(source1: TSource1, source2: TSource2): ObjectChain<T & TSource1 & TSource2>;
|
191 | |
192 |
|
193 |
|
194 | assignIn<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3): ObjectChain<T & TSource1 & TSource2 & TSource3>;
|
195 | |
196 |
|
197 |
|
198 | assignIn<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): ObjectChain<T & TSource1 & TSource2 & TSource3 & TSource4>;
|
199 | |
200 |
|
201 |
|
202 | assignIn(): ObjectChain<T>;
|
203 | |
204 |
|
205 |
|
206 | assignIn(...otherArgs: any[]): ObjectChain<any>;
|
207 | }
|
208 | type AssignCustomizer = (objectValue: any, sourceValue: any, key?: string, object?: {}, source?: {}) => any;
|
209 | interface LoDashStatic {
|
210 | |
211 |
|
212 |
|
213 |
|
214 |
|
215 |
|
216 |
|
217 |
|
218 |
|
219 |
|
220 |
|
221 |
|
222 |
|
223 |
|
224 |
|
225 |
|
226 |
|
227 |
|
228 |
|
229 |
|
230 |
|
231 |
|
232 |
|
233 |
|
234 |
|
235 | assignInWith<TObject, TSource>(object: TObject, source: TSource, customizer: AssignCustomizer): TObject & TSource;
|
236 | |
237 |
|
238 |
|
239 | assignInWith<TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2, customizer: AssignCustomizer): TObject & TSource1 & TSource2;
|
240 | |
241 |
|
242 |
|
243 | assignInWith<TObject, TSource1, TSource2, TSource3>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, customizer: AssignCustomizer): TObject & TSource1 & TSource2 & TSource3;
|
244 | |
245 |
|
246 |
|
247 | assignInWith<TObject, TSource1, TSource2, TSource3, TSource4>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4, customizer: AssignCustomizer): TObject & TSource1 & TSource2 & TSource3 & TSource4;
|
248 | |
249 |
|
250 |
|
251 | assignInWith<TObject>(object: TObject): TObject;
|
252 | |
253 |
|
254 |
|
255 | assignInWith<TResult>(object: any, ...otherArgs: any[]): TResult;
|
256 | }
|
257 | interface Object<T> {
|
258 | |
259 |
|
260 |
|
261 | assignInWith<TSource>(source: TSource, customizer: AssignCustomizer): Object<T & TSource>;
|
262 | |
263 |
|
264 |
|
265 | assignInWith<TSource1, TSource2>(source1: TSource1, source2: TSource2, customizer: AssignCustomizer): Object<T & TSource1 & TSource2>;
|
266 | |
267 |
|
268 |
|
269 | assignInWith<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3, customizer: AssignCustomizer): Object<T & TSource1 & TSource2 & TSource3>;
|
270 | |
271 |
|
272 |
|
273 | assignInWith<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4, customizer: AssignCustomizer): Object<T & TSource1 & TSource2 & TSource3 & TSource4>;
|
274 | |
275 |
|
276 |
|
277 | assignInWith(): Object<T>;
|
278 | |
279 |
|
280 |
|
281 | assignInWith<TResult>(...otherArgs: any[]): Object<TResult>;
|
282 | }
|
283 | interface ObjectChain<T> {
|
284 | |
285 |
|
286 |
|
287 | assignInWith<TSource>(source: TSource, customizer: AssignCustomizer): ObjectChain<T & TSource>;
|
288 | |
289 |
|
290 |
|
291 | assignInWith<TSource1, TSource2>(source1: TSource1, source2: TSource2, customizer: AssignCustomizer): ObjectChain<T & TSource1 & TSource2>;
|
292 | |
293 |
|
294 |
|
295 | assignInWith<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3, customizer: AssignCustomizer): ObjectChain<T & TSource1 & TSource2 & TSource3>;
|
296 | |
297 |
|
298 |
|
299 | assignInWith<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4, customizer: AssignCustomizer): ObjectChain<T & TSource1 & TSource2 & TSource3 & TSource4>;
|
300 | |
301 |
|
302 |
|
303 | assignInWith(): ObjectChain<T>;
|
304 | |
305 |
|
306 |
|
307 | assignInWith(...otherArgs: any[]): ObjectChain<any>;
|
308 | }
|
309 | interface LoDashStatic {
|
310 | |
311 |
|
312 |
|
313 |
|
314 |
|
315 |
|
316 |
|
317 |
|
318 |
|
319 |
|
320 |
|
321 |
|
322 |
|
323 |
|
324 |
|
325 |
|
326 |
|
327 |
|
328 |
|
329 |
|
330 |
|
331 |
|
332 |
|
333 |
|
334 | assignWith<TObject, TSource>(object: TObject, source: TSource, customizer: AssignCustomizer): TObject & TSource;
|
335 | |
336 |
|
337 |
|
338 | assignWith<TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2, customizer: AssignCustomizer): TObject & TSource1 & TSource2;
|
339 | |
340 |
|
341 |
|
342 | assignWith<TObject, TSource1, TSource2, TSource3>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, customizer: AssignCustomizer): TObject & TSource1 & TSource2 & TSource3;
|
343 | |
344 |
|
345 |
|
346 | assignWith<TObject, TSource1, TSource2, TSource3, TSource4>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4, customizer: AssignCustomizer): TObject & TSource1 & TSource2 & TSource3 & TSource4;
|
347 | |
348 |
|
349 |
|
350 | assignWith<TObject>(object: TObject): TObject;
|
351 | |
352 |
|
353 |
|
354 | assignWith<TResult>(object: any, ...otherArgs: any[]): TResult;
|
355 | }
|
356 | interface Object<T> {
|
357 | |
358 |
|
359 |
|
360 | assignWith<TSource>(source: TSource, customizer: AssignCustomizer): Object<T & TSource>;
|
361 | |
362 |
|
363 |
|
364 | assignWith<TSource1, TSource2>(source1: TSource1, source2: TSource2, customizer: AssignCustomizer): Object<T & TSource1 & TSource2>;
|
365 | |
366 |
|
367 |
|
368 | assignWith<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3, customizer: AssignCustomizer): Object<T & TSource1 & TSource2 & TSource3>;
|
369 | |
370 |
|
371 |
|
372 | assignWith<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4, customizer: AssignCustomizer): Object<T & TSource1 & TSource2 & TSource3 & TSource4>;
|
373 | |
374 |
|
375 |
|
376 | assignWith(): Object<T>;
|
377 | |
378 |
|
379 |
|
380 | assignWith<TResult>(...otherArgs: any[]): Object<TResult>;
|
381 | }
|
382 | interface ObjectChain<T> {
|
383 | |
384 |
|
385 |
|
386 | assignWith<TSource>(source: TSource, customizer: AssignCustomizer): ObjectChain<T & TSource>;
|
387 | |
388 |
|
389 |
|
390 | assignWith<TSource1, TSource2>(source1: TSource1, source2: TSource2, customizer: AssignCustomizer): ObjectChain<T & TSource1 & TSource2>;
|
391 | |
392 |
|
393 |
|
394 | assignWith<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3, customizer: AssignCustomizer): ObjectChain<T & TSource1 & TSource2 & TSource3>;
|
395 | |
396 |
|
397 |
|
398 | assignWith<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4, customizer: AssignCustomizer): ObjectChain<T & TSource1 & TSource2 & TSource3 & TSource4>;
|
399 | |
400 |
|
401 |
|
402 | assignWith(): ObjectChain<T>;
|
403 | |
404 |
|
405 |
|
406 | assignWith(...otherArgs: any[]): ObjectChain<any>;
|
407 | }
|
408 | interface LoDashStatic {
|
409 | |
410 |
|
411 |
|
412 |
|
413 |
|
414 |
|
415 |
|
416 |
|
417 | at<T>(object: Dictionary<T> | NumericDictionary<T> | null | undefined, ...props: PropertyPath[]): T[];
|
418 | |
419 |
|
420 |
|
421 | at<T extends object>(object: T | null | undefined, ...props: Array<Many<keyof T>>): Array<T[keyof T]>;
|
422 | }
|
423 | interface Object<T> {
|
424 | |
425 |
|
426 |
|
427 | at(...props: Array<Many<keyof T>>): Collection<T[keyof T]>;
|
428 | }
|
429 | interface Collection<T> {
|
430 | |
431 |
|
432 |
|
433 | at(...props: PropertyPath[]): Collection<T>;
|
434 | }
|
435 | interface ObjectChain<T> {
|
436 | |
437 |
|
438 |
|
439 | at(...props: Array<Many<keyof T>>): CollectionChain<T[keyof T]>;
|
440 | }
|
441 | interface CollectionChain<T> {
|
442 | |
443 |
|
444 |
|
445 | at(...props: PropertyPath[]): CollectionChain<T>;
|
446 | }
|
447 | interface LoDashStatic {
|
448 | |
449 |
|
450 |
|
451 |
|
452 |
|
453 |
|
454 |
|
455 |
|
456 | create<T extends object, U extends object>(prototype: T, properties?: U): T & U;
|
457 | }
|
458 | interface Object<T> {
|
459 | |
460 |
|
461 |
|
462 | create<U extends object>(properties?: U): Object<T & U>;
|
463 | }
|
464 | interface ObjectChain<T> {
|
465 | |
466 |
|
467 |
|
468 | create<U extends object>(properties?: U): ObjectChain<T & U>;
|
469 | }
|
470 | interface LoDashStatic {
|
471 | |
472 |
|
473 |
|
474 |
|
475 |
|
476 |
|
477 |
|
478 |
|
479 |
|
480 |
|
481 |
|
482 | defaults<TObject, TSource>(object: TObject, source: TSource): TSource & TObject;
|
483 | |
484 |
|
485 |
|
486 | defaults<TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2): TSource2 & TSource1 & TObject;
|
487 | |
488 |
|
489 |
|
490 | defaults<TObject, TSource1, TSource2, TSource3>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3): TSource3 & TSource2 & TSource1 & TObject;
|
491 | |
492 |
|
493 |
|
494 | defaults<TObject, TSource1, TSource2, TSource3, TSource4>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): TSource4 & TSource3 & TSource2 & TSource1 & TObject;
|
495 | |
496 |
|
497 |
|
498 | defaults<TObject>(object: TObject): TObject;
|
499 | |
500 |
|
501 |
|
502 | defaults(object: any, ...sources: any[]): any;
|
503 | }
|
504 | interface Object<T> {
|
505 | |
506 |
|
507 |
|
508 | defaults<TSource>(source: TSource): Object<TSource & T>;
|
509 | |
510 |
|
511 |
|
512 | defaults<TSource1, TSource2>(source1: TSource1, source2: TSource2): Object<TSource2 & TSource1 & T>;
|
513 | |
514 |
|
515 |
|
516 | defaults<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3): Object<TSource3 & TSource2 & TSource1 & T>;
|
517 | |
518 |
|
519 |
|
520 | defaults<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): Object<TSource4 & TSource3 & TSource2 & TSource1 & T>;
|
521 | |
522 |
|
523 |
|
524 | defaults(): Object<T>;
|
525 | |
526 |
|
527 |
|
528 | defaults(...sources: any[]): Object<any>;
|
529 | }
|
530 | interface ObjectChain<T> {
|
531 | |
532 |
|
533 |
|
534 | defaults<TSource>(source: TSource): ObjectChain<TSource & T>;
|
535 | |
536 |
|
537 |
|
538 | defaults<TSource1, TSource2>(source1: TSource1, source2: TSource2): ObjectChain<TSource2 & TSource1 & T>;
|
539 | |
540 |
|
541 |
|
542 | defaults<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3): ObjectChain<TSource3 & TSource2 & TSource1 & T>;
|
543 | |
544 |
|
545 |
|
546 | defaults<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): ObjectChain<TSource4 & TSource3 & TSource2 & TSource1 & T>;
|
547 | |
548 |
|
549 |
|
550 | defaults(): ObjectChain<T>;
|
551 | |
552 |
|
553 |
|
554 | defaults(...sources: any[]): ObjectChain<any>;
|
555 | }
|
556 | interface LoDashStatic {
|
557 | |
558 |
|
559 |
|
560 |
|
561 |
|
562 |
|
563 | defaultsDeep(object: any, ...sources: any[]): any;
|
564 | }
|
565 | interface Object<T> {
|
566 | |
567 |
|
568 |
|
569 | defaultsDeep(...sources: any[]): Object<any>;
|
570 | }
|
571 | interface ObjectChain<T> {
|
572 | |
573 |
|
574 |
|
575 | defaultsDeep(...sources: any[]): ObjectChain<any>;
|
576 | }
|
577 | interface LoDashStatic {
|
578 | |
579 |
|
580 |
|
581 | entries<T>(object?: Dictionary<T> | NumericDictionary<T>): Array<[string, T]>;
|
582 | |
583 |
|
584 |
|
585 | entries(object?: object): Array<[string, any]>;
|
586 | }
|
587 | interface Object<T> {
|
588 | |
589 |
|
590 |
|
591 | entries(): Collection<[string, T[keyof T]]>;
|
592 | }
|
593 | interface LoDashImplicitWrapper<TValue> {
|
594 | |
595 |
|
596 |
|
597 | entries(): Collection<[string, any]>;
|
598 | }
|
599 | interface ObjectChain<T> {
|
600 | |
601 |
|
602 |
|
603 | entries(): CollectionChain<[string, T[keyof T]]>;
|
604 | }
|
605 | interface LoDashExplicitWrapper<TValue> {
|
606 | |
607 |
|
608 |
|
609 | entries(): CollectionChain<[string, any]>;
|
610 | }
|
611 | interface LoDashStatic {
|
612 | |
613 |
|
614 |
|
615 | entriesIn<T>(object?: Dictionary<T> | NumericDictionary<T>): Array<[string, T]>;
|
616 | |
617 |
|
618 |
|
619 | entriesIn(object?: object): Array<[string, any]>;
|
620 | }
|
621 | interface Object<T> {
|
622 | |
623 |
|
624 |
|
625 | entriesIn(): Collection<[string, T[keyof T]]>;
|
626 | }
|
627 | interface LoDashImplicitWrapper<TValue> {
|
628 | |
629 |
|
630 |
|
631 | entriesIn(): Collection<[string, any]>;
|
632 | }
|
633 | interface ObjectChain<T> {
|
634 | |
635 |
|
636 |
|
637 | entriesIn(): CollectionChain<[string, T[keyof T]]>;
|
638 | }
|
639 | interface LoDashExplicitWrapper<TValue> {
|
640 | |
641 |
|
642 |
|
643 | entriesIn(): CollectionChain<[string, any]>;
|
644 | }
|
645 | interface LoDashStatic {
|
646 | |
647 |
|
648 |
|
649 | extend<TObject, TSource>(object: TObject, source: TSource): TObject & TSource;
|
650 | |
651 |
|
652 |
|
653 | extend<TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2): TObject & TSource1 & TSource2;
|
654 | |
655 |
|
656 |
|
657 | extend<TObject, TSource1, TSource2, TSource3>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3): TObject & TSource1 & TSource2 & TSource3;
|
658 | |
659 |
|
660 |
|
661 | extend<TObject, TSource1, TSource2, TSource3, TSource4>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): TObject & TSource1 & TSource2 & TSource3 & TSource4;
|
662 | |
663 |
|
664 |
|
665 | extend<TObject>(object: TObject): TObject;
|
666 | |
667 |
|
668 |
|
669 | extend<TResult>(object: any, ...otherArgs: any[]): TResult;
|
670 | }
|
671 | interface Object<T> {
|
672 | |
673 |
|
674 |
|
675 | extend<TSource>(source: TSource): Object<T & TSource>;
|
676 | |
677 |
|
678 |
|
679 | extend<TSource1, TSource2>(source1: TSource1, source2: TSource2): Object<T & TSource1 & TSource2>;
|
680 | |
681 |
|
682 |
|
683 | extend<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3): Object<T & TSource1 & TSource2 & TSource3>;
|
684 | |
685 |
|
686 |
|
687 | extend<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): Object<T & TSource1 & TSource2 & TSource3 & TSource4>;
|
688 | |
689 |
|
690 |
|
691 | extend(): Object<T>;
|
692 | |
693 |
|
694 |
|
695 | extend(...otherArgs: any[]): Object<any>;
|
696 | }
|
697 | interface ObjectChain<T> {
|
698 | |
699 |
|
700 |
|
701 | extend<TSource>(source: TSource): ObjectChain<T & TSource>;
|
702 | |
703 |
|
704 |
|
705 | extend<TSource1, TSource2>(source1: TSource1, source2: TSource2): ObjectChain<T & TSource1 & TSource2>;
|
706 | |
707 |
|
708 |
|
709 | extend<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3): ObjectChain<T & TSource1 & TSource2 & TSource3>;
|
710 | |
711 |
|
712 |
|
713 | extend<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): ObjectChain<T & TSource1 & TSource2 & TSource3 & TSource4>;
|
714 | |
715 |
|
716 |
|
717 | extend(): ObjectChain<T>;
|
718 | |
719 |
|
720 |
|
721 | extend(...otherArgs: any[]): ObjectChain<any>;
|
722 | }
|
723 | interface LoDashStatic {
|
724 | |
725 |
|
726 |
|
727 | extendWith<TObject, TSource>(object: TObject, source: TSource, customizer: AssignCustomizer): TObject & TSource;
|
728 | |
729 |
|
730 |
|
731 | extendWith<TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2, customizer: AssignCustomizer): TObject & TSource1 & TSource2;
|
732 | |
733 |
|
734 |
|
735 | extendWith<TObject, TSource1, TSource2, TSource3>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, customizer: AssignCustomizer): TObject & TSource1 & TSource2 & TSource3;
|
736 | |
737 |
|
738 |
|
739 | extendWith<TObject, TSource1, TSource2, TSource3, TSource4>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4, customizer: AssignCustomizer): TObject & TSource1 & TSource2 & TSource3 & TSource4;
|
740 | |
741 |
|
742 |
|
743 | extendWith<TObject>(object: TObject): TObject;
|
744 | |
745 |
|
746 |
|
747 | extendWith<TResult>(object: any, ...otherArgs: any[]): TResult;
|
748 | }
|
749 | interface Object<T> {
|
750 | |
751 |
|
752 |
|
753 | extendWith<TSource>(source: TSource, customizer: AssignCustomizer): Object<T & TSource>;
|
754 | |
755 |
|
756 |
|
757 | extendWith<TSource1, TSource2>(source1: TSource1, source2: TSource2, customizer: AssignCustomizer): Object<T & TSource1 & TSource2>;
|
758 | |
759 |
|
760 |
|
761 | extendWith<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3, customizer: AssignCustomizer): Object<T & TSource1 & TSource2 & TSource3>;
|
762 | |
763 |
|
764 |
|
765 | extendWith<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4, customizer: AssignCustomizer): Object<T & TSource1 & TSource2 & TSource3 & TSource4>;
|
766 | |
767 |
|
768 |
|
769 | extendWith(): Object<T>;
|
770 | |
771 |
|
772 |
|
773 | extendWith(...otherArgs: any[]): Object<any>;
|
774 | }
|
775 | interface ObjectChain<T> {
|
776 | |
777 |
|
778 |
|
779 | extendWith<TSource>(source: TSource, customizer: AssignCustomizer): ObjectChain<T & TSource>;
|
780 | |
781 |
|
782 |
|
783 | extendWith<TSource1, TSource2>(source1: TSource1, source2: TSource2, customizer: AssignCustomizer): ObjectChain<T & TSource1 & TSource2>;
|
784 | |
785 |
|
786 |
|
787 | extendWith<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3, customizer: AssignCustomizer): ObjectChain<T & TSource1 & TSource2 & TSource3>;
|
788 | |
789 |
|
790 |
|
791 | extendWith<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4, customizer: AssignCustomizer): ObjectChain<T & TSource1 & TSource2 & TSource3 & TSource4>;
|
792 | |
793 |
|
794 |
|
795 | extendWith(): ObjectChain<T>;
|
796 | |
797 |
|
798 |
|
799 | extendWith(...otherArgs: any[]): ObjectChain<any>;
|
800 | }
|
801 | interface LoDashStatic {
|
802 | |
803 |
|
804 |
|
805 |
|
806 |
|
807 |
|
808 |
|
809 |
|
810 | findKey<T>(object: T | null | undefined, predicate?: ObjectIteratee<T>): string | undefined;
|
811 | }
|
812 | interface LoDashImplicitWrapper<TValue> {
|
813 | |
814 |
|
815 |
|
816 | findKey(predicate?: ObjectIteratee<TValue>): string | undefined;
|
817 | }
|
818 | interface LoDashExplicitWrapper<TValue> {
|
819 | |
820 |
|
821 |
|
822 | findKey(predicate?: ObjectIteratee<TValue>): StringNullableChain;
|
823 | }
|
824 | interface LoDashStatic {
|
825 | |
826 |
|
827 |
|
828 |
|
829 |
|
830 |
|
831 |
|
832 | findLastKey<T>(object: T | null | undefined, predicate?: ObjectIteratee<T>): string | undefined;
|
833 | }
|
834 | interface LoDashImplicitWrapper<TValue> {
|
835 | |
836 |
|
837 |
|
838 | findLastKey(predicate?: ObjectIteratee<TValue>): string | undefined;
|
839 | }
|
840 | interface LoDashExplicitWrapper<TValue> {
|
841 | |
842 |
|
843 |
|
844 | findLastKey(predicate?: ObjectIteratee<TValue>): StringNullableChain;
|
845 | }
|
846 | interface LoDashStatic {
|
847 | |
848 |
|
849 |
|
850 |
|
851 |
|
852 |
|
853 |
|
854 |
|
855 |
|
856 | forIn<T>(object: T, iteratee?: ObjectIterator<T, any>): T;
|
857 | |
858 |
|
859 |
|
860 | forIn<T>(object: T | null | undefined, iteratee?: ObjectIterator<T, any>): T | null | undefined;
|
861 | }
|
862 | interface LoDashImplicitWrapper<TValue> {
|
863 | |
864 |
|
865 |
|
866 | forIn(iteratee?: ObjectIterator<TValue, any>): this;
|
867 | }
|
868 | interface LoDashExplicitWrapper<TValue> {
|
869 | |
870 |
|
871 |
|
872 | forIn(iteratee?: ObjectIterator<TValue, any>): this;
|
873 | }
|
874 | interface LoDashStatic {
|
875 | |
876 |
|
877 |
|
878 |
|
879 |
|
880 |
|
881 |
|
882 | forInRight<T>(object: T, iteratee?: ObjectIterator<T, any>): T;
|
883 | |
884 |
|
885 |
|
886 | forInRight<T>(object: T | null | undefined, iteratee?: ObjectIterator<T, any>): T | null | undefined;
|
887 | }
|
888 | interface LoDashImplicitWrapper<TValue> {
|
889 | |
890 |
|
891 |
|
892 | forInRight(iteratee?: ObjectIterator<TValue, any>): this;
|
893 | }
|
894 | interface LoDashExplicitWrapper<TValue> {
|
895 | |
896 |
|
897 |
|
898 | forInRight(iteratee?: ObjectIterator<TValue, any>): this;
|
899 | }
|
900 | interface LoDashStatic {
|
901 | |
902 |
|
903 |
|
904 |
|
905 |
|
906 |
|
907 |
|
908 |
|
909 |
|
910 | forOwn<T>(object: T, iteratee?: ObjectIterator<T, any>): T;
|
911 | |
912 |
|
913 |
|
914 | forOwn<T>(object: T | null | undefined, iteratee?: ObjectIterator<T, any>): T | null | undefined;
|
915 | }
|
916 | interface LoDashImplicitWrapper<TValue> {
|
917 | |
918 |
|
919 |
|
920 | forOwn(iteratee?: ObjectIterator<TValue, any>): this;
|
921 | }
|
922 | interface LoDashExplicitWrapper<TValue> {
|
923 | |
924 |
|
925 |
|
926 | forOwn(iteratee?: ObjectIterator<TValue, any>): this;
|
927 | }
|
928 | interface LoDashStatic {
|
929 | |
930 |
|
931 |
|
932 |
|
933 |
|
934 |
|
935 |
|
936 | forOwnRight<T>(object: T, iteratee?: ObjectIterator<T, any>): T;
|
937 | |
938 |
|
939 |
|
940 | forOwnRight<T>(object: T | null | undefined, iteratee?: ObjectIterator<T, any>): T | null | undefined;
|
941 | }
|
942 | interface LoDashImplicitWrapper<TValue> {
|
943 | |
944 |
|
945 |
|
946 | forOwnRight(iteratee?: ObjectIterator<TValue, any>): this;
|
947 | }
|
948 | interface LoDashExplicitWrapper<TValue> {
|
949 | |
950 |
|
951 |
|
952 | forOwnRight(iteratee?: ObjectIterator<TValue, any>): this;
|
953 | }
|
954 | interface LoDashStatic {
|
955 | |
956 |
|
957 |
|
958 |
|
959 |
|
960 |
|
961 |
|
962 |
|
963 |
|
964 |
|
965 |
|
966 |
|
967 |
|
968 |
|
969 |
|
970 |
|
971 |
|
972 |
|
973 |
|
974 | functions(object: any): string[];
|
975 | }
|
976 | interface LoDashImplicitWrapper<TValue> {
|
977 | |
978 |
|
979 |
|
980 | functions(): Collection<string>;
|
981 | }
|
982 | interface LoDashExplicitWrapper<TValue> {
|
983 | |
984 |
|
985 |
|
986 | functions(): CollectionChain<string>;
|
987 | }
|
988 | interface LoDashStatic {
|
989 | |
990 |
|
991 |
|
992 |
|
993 |
|
994 |
|
995 |
|
996 |
|
997 |
|
998 |
|
999 |
|
1000 |
|
1001 |
|
1002 |
|
1003 |
|
1004 |
|
1005 |
|
1006 |
|
1007 |
|
1008 | functionsIn<T extends {}>(object: any): string[];
|
1009 | }
|
1010 | interface LoDashImplicitWrapper<TValue> {
|
1011 | |
1012 |
|
1013 |
|
1014 | functionsIn(): Collection<string>;
|
1015 | }
|
1016 | interface LoDashExplicitWrapper<TValue> {
|
1017 | |
1018 |
|
1019 |
|
1020 | functionsIn(): CollectionChain<string>;
|
1021 | }
|
1022 | interface LoDashStatic {
|
1023 | |
1024 |
|
1025 |
|
1026 |
|
1027 |
|
1028 |
|
1029 |
|
1030 |
|
1031 |
|
1032 | get<TObject extends object, TKey extends keyof TObject>(object: TObject, path: TKey | [TKey]): TObject[TKey];
|
1033 | |
1034 |
|
1035 |
|
1036 | get<TObject extends object, TKey extends keyof TObject>(object: TObject | null | undefined, path: TKey | [TKey]): TObject[TKey] | undefined;
|
1037 | |
1038 |
|
1039 |
|
1040 | get<TObject extends object, TKey extends keyof TObject, TDefault>(object: TObject | null | undefined, path: TKey | [TKey], defaultValue: TDefault): Exclude<TObject[TKey], undefined> | TDefault;
|
1041 | |
1042 |
|
1043 |
|
1044 | get<TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof TObject[TKey1]>(object: TObject, path: [TKey1, TKey2]): TObject[TKey1][TKey2];
|
1045 | |
1046 |
|
1047 |
|
1048 | get<TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof TObject[TKey1]>(object: TObject | null | undefined, path: [TKey1, TKey2]): TObject[TKey1][TKey2] | undefined;
|
1049 | |
1050 |
|
1051 |
|
1052 | get<TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof TObject[TKey1], TDefault>(object: TObject | null | undefined, path: [TKey1, TKey2], defaultValue: TDefault): Exclude<TObject[TKey1][TKey2], undefined> | TDefault;
|
1053 | |
1054 |
|
1055 |
|
1056 | get<TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof TObject[TKey1], TKey3 extends keyof TObject[TKey1][TKey2]>(object: TObject, path: [TKey1, TKey2, TKey3]): TObject[TKey1][TKey2][TKey3];
|
1057 | |
1058 |
|
1059 |
|
1060 | get<TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof TObject[TKey1], TKey3 extends keyof TObject[TKey1][TKey2]>(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3]): TObject[TKey1][TKey2][TKey3] | undefined;
|
1061 | |
1062 |
|
1063 |
|
1064 | get<TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof TObject[TKey1], TKey3 extends keyof TObject[TKey1][TKey2], TDefault>(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3], defaultValue: TDefault): Exclude<TObject[TKey1][TKey2][TKey3], undefined> | TDefault;
|
1065 | |
1066 |
|
1067 |
|
1068 | get<TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof TObject[TKey1], TKey3 extends keyof TObject[TKey1][TKey2], TKey4 extends keyof TObject[TKey1][TKey2][TKey3]>(object: TObject, path: [TKey1, TKey2, TKey3, TKey4]): TObject[TKey1][TKey2][TKey3][TKey4];
|
1069 | |
1070 |
|
1071 |
|
1072 | get<TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof TObject[TKey1], TKey3 extends keyof TObject[TKey1][TKey2], TKey4 extends keyof TObject[TKey1][TKey2][TKey3]>(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3, TKey4]): TObject[TKey1][TKey2][TKey3][TKey4] | undefined;
|
1073 | |
1074 |
|
1075 |
|
1076 | get<TObject extends object, TKey1 extends keyof TObject, TKey2 extends keyof TObject[TKey1], TKey3 extends keyof TObject[TKey1][TKey2], TKey4 extends keyof TObject[TKey1][TKey2][TKey3], TDefault>(object: TObject | null | undefined, path: [TKey1, TKey2, TKey3, TKey4], defaultValue: TDefault): Exclude<TObject[TKey1][TKey2][TKey3][TKey4], undefined> | TDefault;
|
1077 | |
1078 |
|
1079 |
|
1080 | get<T>(object: NumericDictionary<T>, path: number): T;
|
1081 | |
1082 |
|
1083 |
|
1084 | get<T>(object: NumericDictionary<T> | null | undefined, path: number): T | undefined;
|
1085 | |
1086 |
|
1087 |
|
1088 | get<T, TDefault>(object: NumericDictionary<T> | null | undefined, path: number, defaultValue: TDefault): T | TDefault;
|
1089 | |
1090 |
|
1091 |
|
1092 | get<TDefault>(object: null | undefined, path: PropertyPath, defaultValue: TDefault): TDefault;
|
1093 | |
1094 |
|
1095 |
|
1096 | get(object: null | undefined, path: PropertyPath): undefined;
|
1097 | |
1098 |
|
1099 |
|
1100 | get(object: any, path: PropertyPath, defaultValue?: any): any;
|
1101 | }
|
1102 | interface String {
|
1103 | |
1104 |
|
1105 |
|
1106 | get(path: number | number[]): string;
|
1107 | |
1108 |
|
1109 |
|
1110 | get(path: number | number[], defaultValue: string): string;
|
1111 | }
|
1112 | interface Object<T> {
|
1113 | |
1114 |
|
1115 |
|
1116 | get<TKey extends keyof T>(path: TKey | [TKey]): T[TKey];
|
1117 | |
1118 |
|
1119 |
|
1120 | get<TKey extends keyof T, TDefault>(path: TKey | [TKey], defaultValue: TDefault): Exclude<T[TKey], undefined> | TDefault;
|
1121 | |
1122 |
|
1123 |
|
1124 | get<TKey1 extends keyof T, TKey2 extends keyof T[TKey1]>(path: [TKey1, TKey2]): T[TKey1][TKey2];
|
1125 | |
1126 |
|
1127 |
|
1128 | get<TKey1 extends keyof T, TKey2 extends keyof T[TKey1], TDefault>(path: [TKey1, TKey2], defaultValue: TDefault): Exclude<T[TKey1][TKey2], undefined> | TDefault;
|
1129 | |
1130 |
|
1131 |
|
1132 | get<TKey1 extends keyof T, TKey2 extends keyof T[TKey1], TKey3 extends keyof T[TKey1][TKey2]>(path: [TKey1, TKey2, TKey3]): T[TKey1][TKey2][TKey3];
|
1133 | |
1134 |
|
1135 |
|
1136 | get<TKey1 extends keyof T, TKey2 extends keyof T[TKey1], TKey3 extends keyof T[TKey1][TKey2], TDefault>(path: [TKey1, TKey2, TKey3], defaultValue: TDefault): Exclude<T[TKey1][TKey2][TKey3], undefined> | TDefault;
|
1137 | |
1138 |
|
1139 |
|
1140 | get<TKey1 extends keyof T, TKey2 extends keyof T[TKey1], TKey3 extends keyof T[TKey1][TKey2], TKey4 extends keyof T[TKey1][TKey2][TKey3]>(path: [TKey1, TKey2, TKey3, TKey4]): T[TKey1][TKey2][TKey3][TKey4];
|
1141 | |
1142 |
|
1143 |
|
1144 | get<TKey1 extends keyof T, TKey2 extends keyof T[TKey1], TKey3 extends keyof T[TKey1][TKey2], TKey4 extends keyof T[TKey1][TKey2][TKey3], TDefault>(path: [TKey1, TKey2, TKey3, TKey4], defaultValue: TDefault): Exclude<T[TKey1][TKey2][TKey3][TKey4], undefined> | TDefault;
|
1145 | |
1146 |
|
1147 |
|
1148 | get(path: PropertyPath, defaultValue?: any): any;
|
1149 | }
|
1150 | interface Collection<T> {
|
1151 | |
1152 |
|
1153 |
|
1154 | get(path: number): T;
|
1155 | |
1156 |
|
1157 |
|
1158 | get<TDefault>(path: number, defaultValue: TDefault): T | TDefault;
|
1159 | }
|
1160 | interface StringChain {
|
1161 | |
1162 |
|
1163 |
|
1164 | get(path: number | number[]): StringChain;
|
1165 | |
1166 |
|
1167 |
|
1168 | get(path: number | number[], defaultValue: string): StringChain;
|
1169 | }
|
1170 | interface StringNullableChain {
|
1171 | |
1172 |
|
1173 |
|
1174 | get(path: number | number[]): StringNullableChain;
|
1175 | |
1176 |
|
1177 |
|
1178 | get(path: number | number[], defaultValue: string): StringChain;
|
1179 | }
|
1180 | interface ObjectChain<T> {
|
1181 | |
1182 |
|
1183 |
|
1184 | get<TKey extends keyof T>(path: TKey | [TKey]): ExpChain<T[TKey]>;
|
1185 | |
1186 |
|
1187 |
|
1188 | get<TKey extends keyof T>(path: TKey | [TKey], defaultValue: never[]): T[TKey] extends any[] ? ExpChain<Exclude<T[TKey], undefined>> : ExpChain<Exclude<T[TKey], undefined> | never[]>;
|
1189 | |
1190 |
|
1191 |
|
1192 | get<TKey extends keyof T, TDefault>(path: TKey | [TKey], defaultValue: TDefault): ExpChain<Exclude<T[TKey], undefined> | TDefault>;
|
1193 | |
1194 |
|
1195 |
|
1196 | get<TKey1 extends keyof T, TKey2 extends keyof T[TKey1]>(path: [TKey1, TKey2]): ExpChain<T[TKey1][TKey2]>;
|
1197 | |
1198 |
|
1199 |
|
1200 | get<TKey1 extends keyof T, TKey2 extends keyof T[TKey1]>(path: [TKey1, TKey2], defaultValue: never[]): T[TKey1][TKey2] extends any[] ? ExpChain<Exclude<T[TKey1][TKey2], undefined>> : ExpChain<Exclude<T[TKey1][TKey2], undefined> | never[]>;
|
1201 | |
1202 |
|
1203 |
|
1204 | get<TKey1 extends keyof T, TKey2 extends keyof T[TKey1], TDefault>(path: [TKey1, TKey2], defaultValue: TDefault): ExpChain<Exclude<T[TKey1][TKey2], undefined> | TDefault>;
|
1205 | |
1206 |
|
1207 |
|
1208 | get<TKey1 extends keyof T, TKey2 extends keyof T[TKey1], TKey3 extends keyof T[TKey1][TKey2]>(path: [TKey1, TKey2, TKey3]): ExpChain<T[TKey1][TKey2][TKey3]>;
|
1209 | |
1210 |
|
1211 |
|
1212 | get<TKey1 extends keyof T, TKey2 extends keyof T[TKey1], TKey3 extends keyof T[TKey1][TKey2]>(path: [TKey1, TKey2, TKey3], defaultValue: never[]): T[TKey1][TKey2][TKey3] extends any[] ? ExpChain<Exclude<T[TKey1][TKey2][TKey3], undefined>> : ExpChain<Exclude<T[TKey1][TKey2][TKey3], undefined> | never[]>;
|
1213 | |
1214 |
|
1215 |
|
1216 | get<TKey1 extends keyof T, TKey2 extends keyof T[TKey1], TKey3 extends keyof T[TKey1][TKey2], TDefault>(path: [TKey1, TKey2, TKey3], defaultValue: TDefault): ExpChain<Exclude<T[TKey1][TKey2][TKey3], undefined> | TDefault>;
|
1217 | |
1218 |
|
1219 |
|
1220 | get<TKey1 extends keyof T, TKey2 extends keyof T[TKey1], TKey3 extends keyof T[TKey1][TKey2], TKey4 extends keyof T[TKey1][TKey2][TKey3]>(path: [TKey1, TKey2, TKey3, TKey4]): ExpChain<T[TKey1][TKey2][TKey3][TKey4]>;
|
1221 | |
1222 |
|
1223 |
|
1224 | get<TKey1 extends keyof T, TKey2 extends keyof T[TKey1], TKey3 extends keyof T[TKey1][TKey2], TKey4 extends keyof T[TKey1][TKey2][TKey3]>(path: [TKey1, TKey2, TKey3, TKey4], defaultValue: never[]): T[TKey1][TKey2][TKey3][TKey4] extends any[] ? ExpChain<Exclude<T[TKey1][TKey2][TKey3][TKey4], undefined>> : ExpChain<Exclude<T[TKey1][TKey2][TKey3][TKey4], undefined> | never[]>;
|
1225 | |
1226 |
|
1227 |
|
1228 | get<TKey1 extends keyof T, TKey2 extends keyof T[TKey1], TKey3 extends keyof T[TKey1][TKey2], TKey4 extends keyof T[TKey1][TKey2][TKey3], TDefault>(path: [TKey1, TKey2, TKey3, TKey4], defaultValue: TDefault): ExpChain<Exclude<T[TKey1][TKey2][TKey3][TKey4], undefined> | TDefault>;
|
1229 | |
1230 |
|
1231 |
|
1232 | get(path: PropertyPath, defaultValue?: any): LoDashExplicitWrapper<any>;
|
1233 | }
|
1234 | interface CollectionChain<T> {
|
1235 | |
1236 |
|
1237 |
|
1238 | get(path: number): ExpChain<T>;
|
1239 | |
1240 |
|
1241 |
|
1242 | get<TDefault>(path: number, defaultValue: TDefault): ExpChain<T | TDefault>;
|
1243 | }
|
1244 | interface LoDashStatic {
|
1245 | |
1246 |
|
1247 |
|
1248 |
|
1249 |
|
1250 |
|
1251 |
|
1252 |
|
1253 |
|
1254 |
|
1255 |
|
1256 |
|
1257 |
|
1258 |
|
1259 |
|
1260 |
|
1261 |
|
1262 |
|
1263 |
|
1264 |
|
1265 |
|
1266 |
|
1267 |
|
1268 |
|
1269 | has<T>(object: T, path: PropertyPath): boolean;
|
1270 | }
|
1271 | interface LoDashImplicitWrapper<TValue> {
|
1272 | |
1273 |
|
1274 |
|
1275 | has(path: PropertyPath): boolean;
|
1276 | }
|
1277 | interface LoDashExplicitWrapper<TValue> {
|
1278 | |
1279 |
|
1280 |
|
1281 | has(path: PropertyPath): PrimitiveChain<boolean>;
|
1282 | }
|
1283 | interface LoDashStatic {
|
1284 | |
1285 |
|
1286 |
|
1287 |
|
1288 |
|
1289 |
|
1290 |
|
1291 |
|
1292 |
|
1293 |
|
1294 |
|
1295 |
|
1296 |
|
1297 |
|
1298 |
|
1299 |
|
1300 |
|
1301 |
|
1302 |
|
1303 |
|
1304 |
|
1305 |
|
1306 |
|
1307 | hasIn<T>(object: T, path: PropertyPath): boolean;
|
1308 | }
|
1309 | interface LoDashImplicitWrapper<TValue> {
|
1310 | |
1311 |
|
1312 |
|
1313 | hasIn(path: PropertyPath): boolean;
|
1314 | }
|
1315 | interface LoDashExplicitWrapper<TValue> {
|
1316 | |
1317 |
|
1318 |
|
1319 | hasIn(path: PropertyPath): PrimitiveChain<boolean>;
|
1320 | }
|
1321 | interface LoDashStatic {
|
1322 | |
1323 |
|
1324 |
|
1325 |
|
1326 |
|
1327 |
|
1328 |
|
1329 |
|
1330 | invert(object: object): Dictionary<string>;
|
1331 | }
|
1332 | interface LoDashImplicitWrapper<TValue> {
|
1333 | |
1334 |
|
1335 |
|
1336 | invert(): Object<Dictionary<string>>;
|
1337 | }
|
1338 | interface LoDashExplicitWrapper<TValue> {
|
1339 | |
1340 |
|
1341 |
|
1342 | invert(): ObjectChain<Dictionary<string>>;
|
1343 | }
|
1344 | interface LoDashStatic {
|
1345 | |
1346 |
|
1347 |
|
1348 |
|
1349 |
|
1350 |
|
1351 |
|
1352 |
|
1353 |
|
1354 | invertBy<T>(object: Dictionary<T> | NumericDictionary<T> | null | undefined, interatee?: ValueIteratee<T>): Dictionary<string[]>;
|
1355 | |
1356 |
|
1357 |
|
1358 | invertBy<T extends object>(object: T | null | undefined, interatee?: ValueIteratee<T[keyof T]>): Dictionary<string[]>;
|
1359 | }
|
1360 | interface String {
|
1361 | |
1362 |
|
1363 |
|
1364 | invertBy(iteratee?: ValueIteratee<string>): Object<Dictionary<string[]>>;
|
1365 | }
|
1366 | interface Collection<T> {
|
1367 | |
1368 |
|
1369 |
|
1370 | invertBy(iteratee?: ValueIteratee<T>): Object<Dictionary<string[]>>;
|
1371 | }
|
1372 | interface Object<T> {
|
1373 | |
1374 |
|
1375 |
|
1376 | invertBy(iteratee?: ValueIteratee<T[keyof T]>): Object<Dictionary<string[]>>;
|
1377 | }
|
1378 | interface StringChain {
|
1379 | |
1380 |
|
1381 |
|
1382 | invertBy(iteratee?: ValueIteratee<string>): ObjectChain<Dictionary<string[]>>;
|
1383 | }
|
1384 | interface StringNullableChain {
|
1385 | |
1386 |
|
1387 |
|
1388 | invertBy(iteratee?: ValueIteratee<string>): ObjectChain<Dictionary<string[]>>;
|
1389 | }
|
1390 | interface CollectionChain<T> {
|
1391 | |
1392 |
|
1393 |
|
1394 | invertBy(iteratee?: ValueIteratee<T>): ObjectChain<Dictionary<string[]>>;
|
1395 | }
|
1396 | interface ObjectChain<T> {
|
1397 | |
1398 |
|
1399 |
|
1400 | invertBy(iteratee?: ValueIteratee<T[keyof T]>): ObjectChain<Dictionary<string[]>>;
|
1401 | }
|
1402 | interface LoDashStatic {
|
1403 | |
1404 |
|
1405 |
|
1406 |
|
1407 |
|
1408 |
|
1409 | invoke(object: any, path: PropertyPath, ...args: any[]): any;
|
1410 | }
|
1411 | interface LoDashImplicitWrapper<TValue> {
|
1412 | |
1413 |
|
1414 |
|
1415 | invoke(path: PropertyPath, ...args: any[]): any;
|
1416 | }
|
1417 | interface LoDashExplicitWrapper<TValue> {
|
1418 | |
1419 |
|
1420 |
|
1421 | invoke(path: PropertyPath, ...args: any[]): LoDashExplicitWrapper<any>;
|
1422 | }
|
1423 | interface LoDashStatic {
|
1424 | |
1425 |
|
1426 |
|
1427 |
|
1428 |
|
1429 |
|
1430 |
|
1431 |
|
1432 | keys(object?: any): string[];
|
1433 | }
|
1434 | interface LoDashImplicitWrapper<TValue> {
|
1435 | |
1436 |
|
1437 |
|
1438 | keys(): Collection<string>;
|
1439 | }
|
1440 | interface LoDashExplicitWrapper<TValue> {
|
1441 | |
1442 |
|
1443 |
|
1444 | keys(): CollectionChain<string>;
|
1445 | }
|
1446 | interface LoDashStatic {
|
1447 | |
1448 |
|
1449 |
|
1450 |
|
1451 |
|
1452 |
|
1453 |
|
1454 |
|
1455 | keysIn(object?: any): string[];
|
1456 | }
|
1457 | interface LoDashImplicitWrapper<TValue> {
|
1458 | |
1459 |
|
1460 |
|
1461 | keysIn(): Collection<string>;
|
1462 | }
|
1463 | interface LoDashExplicitWrapper<TValue> {
|
1464 | |
1465 |
|
1466 |
|
1467 | keysIn(): CollectionChain<string>;
|
1468 | }
|
1469 | interface LoDashStatic {
|
1470 | |
1471 |
|
1472 |
|
1473 |
|
1474 |
|
1475 |
|
1476 |
|
1477 |
|
1478 | mapKeys<T>(object: List<T> | null | undefined, iteratee?: ListIteratee<T>): Dictionary<T>;
|
1479 | |
1480 |
|
1481 |
|
1482 | mapKeys<T extends object>(object: T | null | undefined, iteratee?: ObjectIteratee<T>): Dictionary<T[keyof T]>;
|
1483 | }
|
1484 | interface Collection<T> {
|
1485 | |
1486 |
|
1487 |
|
1488 | mapKeys(iteratee?: ListIteratee<T>): Object<Dictionary<T>>;
|
1489 | }
|
1490 | interface Object<T> {
|
1491 | |
1492 |
|
1493 |
|
1494 | mapKeys(iteratee?: ObjectIteratee<T>): Object<Dictionary<T[keyof T]>>;
|
1495 | }
|
1496 | interface CollectionChain<T> {
|
1497 | |
1498 |
|
1499 |
|
1500 | mapKeys(iteratee?: ListIteratee<T>): ObjectChain<Dictionary<T>>;
|
1501 | }
|
1502 | interface ObjectChain<T> {
|
1503 | |
1504 |
|
1505 |
|
1506 | mapKeys(iteratee?: ObjectIteratee<T>): ObjectChain<Dictionary<T[keyof T]>>;
|
1507 | }
|
1508 | interface LoDashStatic {
|
1509 | |
1510 |
|
1511 |
|
1512 |
|
1513 |
|
1514 |
|
1515 |
|
1516 |
|
1517 |
|
1518 | mapValues<TResult>(obj: string | null | undefined, callback: StringIterator<TResult>): NumericDictionary<TResult>;
|
1519 | |
1520 |
|
1521 |
|
1522 | mapValues<T extends object, TResult>(obj: T | null | undefined, callback: ObjectIterator<T, TResult>): { [P in keyof T]: TResult };
|
1523 | |
1524 |
|
1525 |
|
1526 | mapValues<T>(obj: Dictionary<T> | NumericDictionary<T> | null | undefined, iteratee: object): Dictionary<boolean>;
|
1527 | |
1528 |
|
1529 |
|
1530 | mapValues<T extends object>(obj: T | null | undefined, iteratee: object): { [P in keyof T]: boolean };
|
1531 | |
1532 |
|
1533 |
|
1534 | mapValues<T, TKey extends keyof T>(obj: Dictionary<T> | NumericDictionary<T> | null | undefined, iteratee: TKey): Dictionary<T[TKey]>;
|
1535 | |
1536 |
|
1537 |
|
1538 | mapValues<T>(obj: Dictionary<T> | NumericDictionary<T> | null | undefined, iteratee: string): Dictionary<any>;
|
1539 | |
1540 |
|
1541 |
|
1542 | mapValues<T extends object>(obj: T | null | undefined, iteratee: string): { [P in keyof T]: any };
|
1543 | |
1544 |
|
1545 |
|
1546 | mapValues(obj: string | null | undefined): NumericDictionary<string>;
|
1547 | |
1548 |
|
1549 |
|
1550 | mapValues<T>(obj: Dictionary<T> | NumericDictionary<T> | null | undefined): Dictionary<T>;
|
1551 | |
1552 |
|
1553 |
|
1554 | mapValues<T extends object>(obj: T): T;
|
1555 | |
1556 |
|
1557 |
|
1558 | mapValues<T extends object>(obj: T | null | undefined): PartialObject<T>;
|
1559 | }
|
1560 | interface String {
|
1561 | |
1562 |
|
1563 |
|
1564 | mapValues<TResult>(callback: StringIterator<TResult>): Object<NumericDictionary<TResult>>;
|
1565 | |
1566 |
|
1567 |
|
1568 | mapValues(): Object<NumericDictionary<string>>;
|
1569 | }
|
1570 | interface Collection<T> {
|
1571 | |
1572 |
|
1573 |
|
1574 | mapValues<TResult>(callback: DictionaryIterator<T, TResult>): Object<Dictionary<TResult>>;
|
1575 | |
1576 |
|
1577 |
|
1578 | mapValues<TKey extends keyof T>(iteratee: TKey): Object<Dictionary<T[TKey]>>;
|
1579 | |
1580 |
|
1581 |
|
1582 | mapValues(iteratee: object): Object<Dictionary<boolean>>;
|
1583 | |
1584 |
|
1585 |
|
1586 | mapValues(iteratee: string): Object<Dictionary<any>>;
|
1587 | |
1588 |
|
1589 |
|
1590 | mapValues(): Object<Dictionary<T>>;
|
1591 | }
|
1592 | interface Object<T> {
|
1593 | |
1594 |
|
1595 |
|
1596 | mapValues<TResult>(callback: ObjectIterator<T, TResult>): Object<{ [P in keyof T]: TResult }>;
|
1597 | |
1598 |
|
1599 |
|
1600 | mapValues<TResult>(callback: DictionaryIterator<T[keyof T], TResult>): Object<Dictionary<TResult>>;
|
1601 | |
1602 |
|
1603 |
|
1604 | mapValues(iteratee: object): Object<{ [P in keyof T]: boolean }>;
|
1605 | |
1606 |
|
1607 |
|
1608 | mapValues<TKey extends keyof T[keyof T]>(iteratee: TKey): Object<Dictionary<T[keyof T][TKey]>>;
|
1609 | |
1610 |
|
1611 |
|
1612 | mapValues(iteratee: string): Object<{ [P in keyof T]: any }>;
|
1613 | |
1614 |
|
1615 |
|
1616 | mapValues(): Object<T>;
|
1617 | }
|
1618 | interface StringChain {
|
1619 | |
1620 |
|
1621 |
|
1622 | mapValues<TResult>(callback: StringIterator<TResult>): ObjectChain<NumericDictionary<TResult>>;
|
1623 | |
1624 |
|
1625 |
|
1626 | mapValues(): ObjectChain<NumericDictionary<string>>;
|
1627 | }
|
1628 | interface StringNullableChain {
|
1629 | |
1630 |
|
1631 |
|
1632 | mapValues<TResult>(callback: StringIterator<TResult>): ObjectChain<NumericDictionary<TResult>>;
|
1633 | |
1634 |
|
1635 |
|
1636 | mapValues(): ObjectChain<NumericDictionary<string>>;
|
1637 | }
|
1638 | interface CollectionChain<T> {
|
1639 | |
1640 |
|
1641 |
|
1642 | mapValues<TResult>(callback: DictionaryIterator<T, TResult>): ObjectChain<Dictionary<TResult>>;
|
1643 | |
1644 |
|
1645 |
|
1646 | mapValues<TKey extends keyof T>(iteratee: TKey): ObjectChain<Dictionary<T[TKey]>>;
|
1647 | |
1648 |
|
1649 |
|
1650 | mapValues(iteratee: object): ObjectChain<Dictionary<boolean>>;
|
1651 | |
1652 |
|
1653 |
|
1654 | mapValues(iteratee: string): ObjectChain<Dictionary<any>>;
|
1655 | |
1656 |
|
1657 |
|
1658 | mapValues(): ObjectChain<Dictionary<T>>;
|
1659 | }
|
1660 | interface ObjectChain<T> {
|
1661 | |
1662 |
|
1663 |
|
1664 | mapValues<TResult>(callback: ObjectIterator<T, TResult>): ObjectChain<{ [P in keyof T]: TResult }>;
|
1665 | |
1666 |
|
1667 |
|
1668 | mapValues<TResult>(callback: DictionaryIterator<T[keyof T], TResult>): ObjectChain<Dictionary<TResult>>;
|
1669 | |
1670 |
|
1671 |
|
1672 | mapValues(iteratee: object): ObjectChain<{ [P in keyof T]: boolean }>;
|
1673 | |
1674 |
|
1675 |
|
1676 | mapValues<TKey extends keyof T[keyof T]>(iteratee: TKey): ObjectChain<Dictionary<T[keyof T][TKey]>>;
|
1677 | |
1678 |
|
1679 |
|
1680 | mapValues(iteratee: string): ObjectChain<{ [P in keyof T]: any }>;
|
1681 | |
1682 |
|
1683 |
|
1684 | mapValues(): ObjectChain<T>;
|
1685 | }
|
1686 | interface LoDashStatic {
|
1687 | |
1688 |
|
1689 |
|
1690 |
|
1691 |
|
1692 |
|
1693 |
|
1694 |
|
1695 |
|
1696 |
|
1697 |
|
1698 |
|
1699 |
|
1700 |
|
1701 |
|
1702 |
|
1703 |
|
1704 |
|
1705 |
|
1706 |
|
1707 |
|
1708 |
|
1709 |
|
1710 |
|
1711 |
|
1712 |
|
1713 |
|
1714 | merge<TObject, TSource>(object: TObject, source: TSource): TObject & TSource;
|
1715 | |
1716 |
|
1717 |
|
1718 | merge<TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2): TObject & TSource1 & TSource2;
|
1719 | |
1720 |
|
1721 |
|
1722 | merge<TObject, TSource1, TSource2, TSource3>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3): TObject & TSource1 & TSource2 & TSource3;
|
1723 | |
1724 |
|
1725 |
|
1726 | merge<TObject, TSource1, TSource2, TSource3, TSource4>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): TObject & TSource1 & TSource2 & TSource3 & TSource4;
|
1727 | |
1728 |
|
1729 |
|
1730 | merge(object: any, ...otherArgs: any[]): any;
|
1731 | }
|
1732 | interface Object<T> {
|
1733 | |
1734 |
|
1735 |
|
1736 | merge<TSource>(source: TSource): Object<T & TSource>;
|
1737 | |
1738 |
|
1739 |
|
1740 | merge<TSource1, TSource2>(source1: TSource1, source2: TSource2): Object<T & TSource1 & TSource2>;
|
1741 | |
1742 |
|
1743 |
|
1744 | merge<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3): Object<T & TSource1 & TSource2 & TSource3>;
|
1745 | |
1746 |
|
1747 |
|
1748 | merge<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): Object<T & TSource1 & TSource2 & TSource3 & TSource4>;
|
1749 | |
1750 |
|
1751 |
|
1752 | merge(...otherArgs: any[]): Object<any>;
|
1753 | }
|
1754 | interface ObjectChain<T> {
|
1755 | |
1756 |
|
1757 |
|
1758 | merge<TSource>(source: TSource): ObjectChain<T & TSource>;
|
1759 | |
1760 |
|
1761 |
|
1762 | merge<TSource1, TSource2>(source1: TSource1, source2: TSource2): ObjectChain<T & TSource1 & TSource2>;
|
1763 | |
1764 |
|
1765 |
|
1766 | merge<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3): ObjectChain<T & TSource1 & TSource2 & TSource3>;
|
1767 | |
1768 |
|
1769 |
|
1770 | merge<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): ObjectChain<T & TSource1 & TSource2 & TSource3 & TSource4>;
|
1771 | |
1772 |
|
1773 |
|
1774 | merge(...otherArgs: any[]): ObjectChain<any>;
|
1775 | }
|
1776 | type MergeWithCustomizer = { bivariantHack(value: any, srcValue: any, key: string, object: any, source: any): any; }["bivariantHack"];
|
1777 |
|
1778 |
|
1779 | interface LoDashStatic {
|
1780 | |
1781 |
|
1782 |
|
1783 |
|
1784 |
|
1785 |
|
1786 |
|
1787 |
|
1788 |
|
1789 |
|
1790 |
|
1791 |
|
1792 |
|
1793 |
|
1794 |
|
1795 |
|
1796 |
|
1797 |
|
1798 |
|
1799 |
|
1800 |
|
1801 |
|
1802 |
|
1803 |
|
1804 |
|
1805 |
|
1806 |
|
1807 |
|
1808 |
|
1809 |
|
1810 |
|
1811 |
|
1812 |
|
1813 | mergeWith<TObject, TSource>(object: TObject, source: TSource, customizer: MergeWithCustomizer): TObject & TSource;
|
1814 | |
1815 |
|
1816 |
|
1817 | mergeWith<TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2, customizer: MergeWithCustomizer): TObject & TSource1 & TSource2;
|
1818 | |
1819 |
|
1820 |
|
1821 | mergeWith<TObject, TSource1, TSource2, TSource3>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, customizer: MergeWithCustomizer): TObject & TSource1 & TSource2 & TSource3;
|
1822 | |
1823 |
|
1824 |
|
1825 | mergeWith<TObject, TSource1, TSource2, TSource3, TSource4>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4, customizer: MergeWithCustomizer): TObject & TSource1 & TSource2 & TSource3 & TSource4;
|
1826 | |
1827 |
|
1828 |
|
1829 | mergeWith(object: any, ...otherArgs: any[]): any;
|
1830 | }
|
1831 | interface Object<T> {
|
1832 | |
1833 |
|
1834 |
|
1835 | mergeWith<TSource>(source: TSource, customizer: MergeWithCustomizer): Object<T & TSource>;
|
1836 | |
1837 |
|
1838 |
|
1839 | mergeWith<TSource1, TSource2>(source1: TSource1, source2: TSource2, customizer: MergeWithCustomizer): Object<T & TSource1 & TSource2>;
|
1840 | |
1841 |
|
1842 |
|
1843 | mergeWith<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3, customizer: MergeWithCustomizer): Object<T & TSource1 & TSource2 & TSource3>;
|
1844 | |
1845 |
|
1846 |
|
1847 | mergeWith<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4, customizer: MergeWithCustomizer): Object<T & TSource1 & TSource2 & TSource3 & TSource4>;
|
1848 | |
1849 |
|
1850 |
|
1851 | mergeWith(...otherArgs: any[]): Object<any>;
|
1852 | }
|
1853 | interface ObjectChain<T> {
|
1854 | |
1855 |
|
1856 |
|
1857 | mergeWith<TSource>(source: TSource, customizer: MergeWithCustomizer): ObjectChain<T & TSource>;
|
1858 | |
1859 |
|
1860 |
|
1861 | mergeWith<TSource1, TSource2>(source1: TSource1, source2: TSource2, customizer: MergeWithCustomizer): ObjectChain<T & TSource1 & TSource2>;
|
1862 | |
1863 |
|
1864 |
|
1865 | mergeWith<TSource1, TSource2, TSource3>(source1: TSource1, source2: TSource2, source3: TSource3, customizer: MergeWithCustomizer): ObjectChain<T & TSource1 & TSource2 & TSource3>;
|
1866 | |
1867 |
|
1868 |
|
1869 | mergeWith<TSource1, TSource2, TSource3, TSource4>(source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4, customizer: MergeWithCustomizer): ObjectChain<T & TSource1 & TSource2 & TSource3 & TSource4>;
|
1870 | |
1871 |
|
1872 |
|
1873 | mergeWith(...otherArgs: any[]): ObjectChain<any>;
|
1874 | }
|
1875 | interface LoDashStatic {
|
1876 | |
1877 |
|
1878 |
|
1879 |
|
1880 |
|
1881 |
|
1882 |
|
1883 |
|
1884 |
|
1885 |
|
1886 |
|
1887 |
|
1888 |
|
1889 |
|
1890 |
|
1891 |
|
1892 | omit<T extends object, K extends keyof T>(object: T | null | undefined, ...paths: Array<Many<K>>): Omit<T, K>;
|
1893 | |
1894 |
|
1895 |
|
1896 | omit<T extends object>(object: T | null | undefined, ...paths: Array<Many<PropertyName>>): PartialObject<T>;
|
1897 | }
|
1898 | interface Collection<T> {
|
1899 | |
1900 |
|
1901 |
|
1902 | omit(...paths: Array<Many<PropertyName>>): Collection<T>;
|
1903 | }
|
1904 | interface Object<T> {
|
1905 | |
1906 |
|
1907 |
|
1908 | omit<K extends keyof T>(...paths: Array<Many<K>>): Object<Omit<T, K>>;
|
1909 | |
1910 |
|
1911 |
|
1912 | omit(...paths: Array<Many<PropertyName | IterateeShorthand<T>>>): Object<PartialObject<T>>;
|
1913 | }
|
1914 | interface CollectionChain<T> {
|
1915 | |
1916 |
|
1917 |
|
1918 | omit(...paths: Array<Many<PropertyName>>): CollectionChain<T>;
|
1919 | }
|
1920 | interface ObjectChain<T> {
|
1921 | |
1922 |
|
1923 |
|
1924 | omit<K extends keyof T>(...paths: Array<Many<K>>): ObjectChain<Omit<T, K>>;
|
1925 | |
1926 |
|
1927 |
|
1928 | omit(...paths: Array<Many<PropertyName>>): ObjectChain<PartialObject<T>>;
|
1929 | }
|
1930 | interface LoDashStatic {
|
1931 | |
1932 |
|
1933 |
|
1934 |
|
1935 |
|
1936 |
|
1937 |
|
1938 |
|
1939 |
|
1940 |
|
1941 |
|
1942 |
|
1943 |
|
1944 |
|
1945 |
|
1946 |
|
1947 | omitBy<T>(object: Dictionary<T> | null | undefined, predicate?: ValueKeyIteratee<T>): Dictionary<T>;
|
1948 | |
1949 |
|
1950 |
|
1951 | omitBy<T>(object: NumericDictionary<T> | null | undefined, predicate?: ValueKeyIteratee<T>): NumericDictionary<T>;
|
1952 | |
1953 |
|
1954 |
|
1955 | omitBy<T extends object>(object: T | null | undefined, predicate: ValueKeyIteratee<T[keyof T]>): PartialObject<T>;
|
1956 | }
|
1957 | interface Collection<T> {
|
1958 | |
1959 |
|
1960 |
|
1961 | omitBy(predicate?: ValueKeyIteratee<T>): Object<Dictionary<T>>;
|
1962 | }
|
1963 | interface Object<T> {
|
1964 | |
1965 |
|
1966 |
|
1967 | omitBy(predicate: ValueKeyIteratee<T[keyof T]>): Object<PartialObject<T>>;
|
1968 | }
|
1969 | interface CollectionChain<T> {
|
1970 | |
1971 |
|
1972 |
|
1973 | omitBy(predicate?: ValueKeyIteratee<T>): ObjectChain<Dictionary<T>>;
|
1974 | }
|
1975 | interface ObjectChain<T> {
|
1976 | |
1977 |
|
1978 |
|
1979 | omitBy(predicate: ValueKeyIteratee<T[keyof T]>): ObjectChain<PartialObject<T>>;
|
1980 | }
|
1981 | interface LoDashStatic {
|
1982 | |
1983 |
|
1984 |
|
1985 |
|
1986 |
|
1987 |
|
1988 |
|
1989 |
|
1990 |
|
1991 |
|
1992 |
|
1993 |
|
1994 |
|
1995 |
|
1996 |
|
1997 | pick<T extends object, U extends keyof T>(object: T, ...props: Array<Many<U>>): Pick<T, U>;
|
1998 | |
1999 |
|
2000 |
|
2001 | pick<T>(object: T | null | undefined, ...props: PropertyPath[]): PartialObject<T>;
|
2002 | }
|
2003 | interface Object<T> {
|
2004 | |
2005 |
|
2006 |
|
2007 | pick<U extends keyof T>(...props: Array<Many<U>>): Object<Pick<T, U>>;
|
2008 | |
2009 |
|
2010 |
|
2011 | pick(...props: PropertyPath[]): Object<PartialObject<T>>;
|
2012 | }
|
2013 | interface ObjectChain<T> {
|
2014 | |
2015 |
|
2016 |
|
2017 | pick<U extends keyof T>(...props: Array<Many<U>>): ObjectChain<Pick<T, U>>;
|
2018 | |
2019 |
|
2020 |
|
2021 | pick(...props: PropertyPath[]): ObjectChain<PartialObject<T>>;
|
2022 | }
|
2023 | interface LoDashStatic {
|
2024 | |
2025 |
|
2026 |
|
2027 |
|
2028 |
|
2029 |
|
2030 |
|
2031 |
|
2032 |
|
2033 |
|
2034 |
|
2035 |
|
2036 |
|
2037 |
|
2038 |
|
2039 | pickBy<T, S extends T>(object: Dictionary<T> | null | undefined, predicate: ValueKeyIterateeTypeGuard<T, S>): Dictionary<S>;
|
2040 | |
2041 |
|
2042 |
|
2043 | pickBy<T, S extends T>(object: NumericDictionary<T> | null | undefined, predicate: ValueKeyIterateeTypeGuard<T, S>): NumericDictionary<S>;
|
2044 | |
2045 |
|
2046 |
|
2047 | pickBy<T>(object: Dictionary<T> | null | undefined, predicate?: ValueKeyIteratee<T>): Dictionary<T>;
|
2048 | |
2049 |
|
2050 |
|
2051 | pickBy<T>(object: NumericDictionary<T> | null | undefined, predicate?: ValueKeyIteratee<T>): NumericDictionary<T>;
|
2052 | |
2053 |
|
2054 |
|
2055 | pickBy<T extends object>(object: T | null | undefined, predicate?: ValueKeyIteratee<T[keyof T]>): PartialObject<T>;
|
2056 | }
|
2057 | interface Collection<T> {
|
2058 | |
2059 |
|
2060 |
|
2061 | pickBy<S extends T>(predicate: ValueKeyIterateeTypeGuard<T, S>): Object<Dictionary<S>>;
|
2062 | |
2063 |
|
2064 |
|
2065 | pickBy(predicate?: ValueKeyIteratee<T>): Object<Dictionary<T>>;
|
2066 | }
|
2067 | interface Object<T> {
|
2068 | |
2069 |
|
2070 |
|
2071 | pickBy<S extends T[keyof T]>(predicate: ValueKeyIterateeTypeGuard<T[keyof T], S>): Object<NumericDictionary<unknown> extends T ? NumericDictionary<S> : Dictionary<S>>;
|
2072 | |
2073 |
|
2074 |
|
2075 | pickBy(predicate?: ValueKeyIteratee<T[keyof T]>): Object<PartialObject<T>>;
|
2076 | }
|
2077 | interface CollectionChain<T> {
|
2078 | |
2079 |
|
2080 |
|
2081 | pickBy<S extends T>(predicate: ValueKeyIterateeTypeGuard<T, S>): ObjectChain<Dictionary<S>>;
|
2082 | |
2083 |
|
2084 |
|
2085 | pickBy(predicate?: ValueKeyIteratee<T>): ObjectChain<Dictionary<T>>;
|
2086 | }
|
2087 | interface ObjectChain<T> {
|
2088 | |
2089 |
|
2090 |
|
2091 | pickBy<S extends T[keyof T]>(predicate: ValueKeyIterateeTypeGuard<T[keyof T], S>): ObjectChain<NumericDictionary<unknown> extends T ? NumericDictionary<S> : Dictionary<S>>;
|
2092 | |
2093 |
|
2094 |
|
2095 | pickBy(predicate?: ValueKeyIteratee<T[keyof T]>): ObjectChain<PartialObject<T>>;
|
2096 | }
|
2097 | interface LoDashStatic {
|
2098 | |
2099 |
|
2100 |
|
2101 |
|
2102 |
|
2103 |
|
2104 |
|
2105 |
|
2106 |
|
2107 | result<TResult>(object: any, path: PropertyPath, defaultValue?: TResult | ((...args: any[]) => TResult)): TResult;
|
2108 | }
|
2109 | interface LoDashImplicitWrapper<TValue> {
|
2110 | /**
|
2111 | * @see _.result
|
2112 | */
|
2113 | result<TResult>(path: PropertyPath, defaultValue?: TResult | ((...args: any[]) => TResult)): TResult;
|
2114 | }
|
2115 | interface LoDashExplicitWrapper<TValue> {
|
2116 | /**
|
2117 | * @see _.result
|
2118 | */
|
2119 | result<TResult>(path: PropertyPath, defaultValue?: TResult | ((...args: any[]) => TResult)): ExpChain<TResult>;
|
2120 | }
|
2121 | interface LoDashStatic {
|
2122 | /**
|
2123 | * Sets the value at path of object. If a portion of path doesn’t exist it’s created. Arrays are created for
|
2124 | * missing index properties while objects are created for all other missing properties. Use _.setWith to
|
2125 | * customize path creation.
|
2126 | *
|
2127 | * @param object The object to modify.
|
2128 | * @param path The path of the property to set.
|
2129 | * @param value The value to set.
|
2130 | * @return Returns object.
|
2131 | */
|
2132 | set<T extends object>(object: T, path: PropertyPath, value: any): T;
|
2133 | /**
|
2134 | * @see _.set
|
2135 | */
|
2136 | set<TResult>(object: object, path: PropertyPath, value: any): TResult;
|
2137 | }
|
2138 | interface LoDashImplicitWrapper<TValue> {
|
2139 | /**
|
2140 | * @see _.set
|
2141 | */
|
2142 | set(path: PropertyPath, value: any): this;
|
2143 | /**
|
2144 | * @see _.set
|
2145 | */
|
2146 | set<TResult>(path: PropertyPath, value: any): ImpChain<TResult>;
|
2147 | }
|
2148 | interface LoDashExplicitWrapper<TValue> {
|
2149 | /**
|
2150 | * @see _.set
|
2151 | */
|
2152 | set(path: PropertyPath, value: any): this;
|
2153 | /**
|
2154 | * @see _.set
|
2155 | */
|
2156 | set<TResult>(path: PropertyPath, value: any): ExpChain<TResult>;
|
2157 | }
|
2158 | type SetWithCustomizer<T> = (nsValue: any, key: string, nsObject: T) => any;
|
2159 | interface LoDashStatic {
|
2160 | |
2161 |
|
2162 |
|
2163 |
|
2164 |
|
2165 |
|
2166 |
|
2167 |
|
2168 |
|
2169 |
|
2170 |
|
2171 | setWith<T extends object>(object: T, path: PropertyPath, value: any, customizer?: SetWithCustomizer<T>): T;
|
2172 | |
2173 |
|
2174 |
|
2175 | setWith<T extends object, TResult>(object: T, path: PropertyPath, value: any, customizer?: SetWithCustomizer<T>): TResult;
|
2176 | }
|
2177 | interface LoDashImplicitWrapper<TValue> {
|
2178 | |
2179 |
|
2180 |
|
2181 | setWith(path: PropertyPath, value: any, customizer?: SetWithCustomizer<TValue>): this;
|
2182 | |
2183 |
|
2184 |
|
2185 | setWith<TResult>(path: PropertyPath, value: any, customizer?: SetWithCustomizer<TValue>): ImpChain<TResult>;
|
2186 | }
|
2187 | interface LoDashExplicitWrapper<TValue> {
|
2188 | |
2189 |
|
2190 |
|
2191 | setWith(path: PropertyPath, value: any, customizer?: SetWithCustomizer<TValue>): this;
|
2192 | |
2193 |
|
2194 |
|
2195 | setWith<TResult>(path: PropertyPath, value: any, customizer?: SetWithCustomizer<TValue>): ExpChain<TResult>;
|
2196 | }
|
2197 | interface LoDashStatic {
|
2198 | |
2199 |
|
2200 |
|
2201 |
|
2202 |
|
2203 |
|
2204 | toPairs<T>(object?: Dictionary<T> | NumericDictionary<T>): Array<[string, T]>;
|
2205 | |
2206 |
|
2207 |
|
2208 | toPairs(object?: object): Array<[string, any]>;
|
2209 | }
|
2210 | interface LoDashImplicitWrapper<TValue> {
|
2211 | |
2212 |
|
2213 |
|
2214 | toPairs(): Collection<[string, TValue extends Dictionary<infer U> ? U : TValue extends NumericDictionary<infer V> ? V : any]>;
|
2215 | }
|
2216 | interface LoDashExplicitWrapper<TValue> {
|
2217 | |
2218 |
|
2219 |
|
2220 | toPairs(): CollectionChain<[string, TValue extends Dictionary<infer U> ? U : TValue extends NumericDictionary<infer V> ? V : any]>;
|
2221 | }
|
2222 | interface LoDashStatic {
|
2223 | |
2224 |
|
2225 |
|
2226 |
|
2227 |
|
2228 |
|
2229 | toPairsIn<T>(object?: Dictionary<T> | NumericDictionary<T>): Array<[string, T]>;
|
2230 | |
2231 |
|
2232 |
|
2233 | toPairsIn(object?: object): Array<[string, any]>;
|
2234 | }
|
2235 | interface LoDashImplicitWrapper<TValue> {
|
2236 | |
2237 |
|
2238 |
|
2239 | toPairsIn(): Collection<[string, TValue extends Dictionary<infer U> ? U : TValue extends NumericDictionary<infer V> ? V : any]>;
|
2240 | }
|
2241 | interface LoDashExplicitWrapper<TValue> {
|
2242 | |
2243 |
|
2244 |
|
2245 | toPairsIn(): CollectionChain<[string, TValue extends Dictionary<infer U> ? U : TValue extends NumericDictionary<infer V> ? V : any]>;
|
2246 | }
|
2247 | interface LoDashStatic {
|
2248 | |
2249 |
|
2250 |
|
2251 |
|
2252 |
|
2253 |
|
2254 |
|
2255 |
|
2256 |
|
2257 |
|
2258 |
|
2259 | transform<T, TResult>(object: T[], iteratee: MemoVoidArrayIterator<T, TResult>, accumulator?: TResult): TResult;
|
2260 | |
2261 |
|
2262 |
|
2263 | transform<T, TResult>(object: Dictionary<T>, iteratee: MemoVoidDictionaryIterator<T, TResult>, accumulator?: TResult): TResult;
|
2264 | |
2265 |
|
2266 |
|
2267 | transform(object: any[]): any[];
|
2268 | |
2269 |
|
2270 |
|
2271 | transform(object: object): Dictionary<any>;
|
2272 | }
|
2273 | interface Collection<T> {
|
2274 | |
2275 |
|
2276 |
|
2277 | transform<TResult>(iteratee: MemoVoidArrayIterator<T, TResult>, accumulator?: TResult): ImpChain<TResult>;
|
2278 | |
2279 |
|
2280 |
|
2281 | transform(): Collection<any>;
|
2282 | }
|
2283 | interface Object<T> {
|
2284 | |
2285 |
|
2286 |
|
2287 | transform<TResult>(iteratee: MemoVoidDictionaryIterator<T[keyof T], TResult>, accumulator?: TResult): ImpChain<TResult>;
|
2288 | |
2289 |
|
2290 |
|
2291 | transform(): ImpChain<T extends Dictionary<unknown> ? Dictionary<any> : T>;
|
2292 | }
|
2293 | interface CollectionChain<T> {
|
2294 | |
2295 |
|
2296 |
|
2297 | transform<TResult>(iteratee: MemoVoidArrayIterator<T, TResult>, accumulator?: TResult): ExpChain<TResult>;
|
2298 | |
2299 |
|
2300 |
|
2301 | transform(): CollectionChain<any>;
|
2302 | }
|
2303 | interface ObjectChain<T> {
|
2304 | |
2305 |
|
2306 |
|
2307 | transform<TResult>(iteratee: MemoVoidDictionaryIterator<T[keyof T], TResult>, accumulator?: TResult): ExpChain<TResult>;
|
2308 | |
2309 |
|
2310 |
|
2311 | transform(): ExpChain<T extends Dictionary<unknown> ? Dictionary<any> : T>;
|
2312 | }
|
2313 | interface LoDashStatic {
|
2314 | |
2315 |
|
2316 |
|
2317 |
|
2318 |
|
2319 |
|
2320 |
|
2321 |
|
2322 |
|
2323 | unset(object: any, path: PropertyPath): boolean;
|
2324 | }
|
2325 | interface LoDashImplicitWrapper<TValue> {
|
2326 | |
2327 |
|
2328 |
|
2329 | unset(path: PropertyPath): Primitive<boolean>;
|
2330 | }
|
2331 | interface LoDashExplicitWrapper<TValue> {
|
2332 | |
2333 |
|
2334 |
|
2335 | unset(path: PropertyPath): PrimitiveChain<boolean>;
|
2336 | }
|
2337 | interface LoDashStatic {
|
2338 | |
2339 |
|
2340 |
|
2341 |
|
2342 |
|
2343 |
|
2344 |
|
2345 |
|
2346 |
|
2347 | update(object: object, path: PropertyPath, updater: (value: any) => any): any;
|
2348 | }
|
2349 | interface LoDashImplicitWrapper<TValue> {
|
2350 | |
2351 |
|
2352 |
|
2353 | update(path: PropertyPath, updater: (value: any) => any): Object<any>;
|
2354 | }
|
2355 | interface LoDashExplicitWrapper<TValue> {
|
2356 | |
2357 |
|
2358 |
|
2359 | update(path: PropertyPath, updater: (value: any) => any): ObjectChain<any>;
|
2360 | }
|
2361 | interface LoDashStatic {
|
2362 | |
2363 |
|
2364 |
|
2365 |
|
2366 |
|
2367 |
|
2368 |
|
2369 |
|
2370 |
|
2371 |
|
2372 |
|
2373 |
|
2374 |
|
2375 |
|
2376 |
|
2377 |
|
2378 |
|
2379 |
|
2380 |
|
2381 |
|
2382 |
|
2383 |
|
2384 | updateWith<T extends object>(object: T, path: PropertyPath, updater: (oldValue: any) => any, customizer?: SetWithCustomizer<T>): T;
|
2385 | /**
|
2386 | * @see _.updateWith
|
2387 | */
|
2388 | updateWith<T extends object, TResult>(object: T, path: PropertyPath, updater: (oldValue: any) => any, customizer?: SetWithCustomizer<T>): TResult;
|
2389 | }
|
2390 | interface Object<T> {
|
2391 | /**
|
2392 | * @see _.updateWith
|
2393 | */
|
2394 | updateWith(path: PropertyPath, updater: (oldValue: any) => any, customizer?: SetWithCustomizer<T>): this;
|
2395 | /**
|
2396 | * @see _.updateWith
|
2397 | */
|
2398 | updateWith<TResult>(path: PropertyPath, updater: (oldValue: any) => any, customizer?: SetWithCustomizer<T>): Object<TResult>;
|
2399 | }
|
2400 | interface ObjectChain<T> {
|
2401 | /**
|
2402 | * @see _.updateWith
|
2403 | */
|
2404 | updateWith(path: PropertyPath, updater: (oldValue: any) => any, customizer?: SetWithCustomizer<T>): this;
|
2405 | /**
|
2406 | * @see _.updateWith
|
2407 | */
|
2408 | updateWith<TResult>(path: PropertyPath, updater: (oldValue: any) => any, customizer?: SetWithCustomizer<T>): ObjectChain<TResult>;
|
2409 | }
|
2410 | interface LoDashStatic {
|
2411 | /**
|
2412 | * Creates an array of the own enumerable property values of object.
|
2413 | *
|
2414 | * @param object The object to query.
|
2415 | * @return Returns an array of property values.
|
2416 | */
|
2417 | values<T>(object: Dictionary<T> | NumericDictionary<T> | List<T> | null | undefined): T[];
|
2418 | /**
|
2419 | * @see _.values
|
2420 | */
|
2421 | values<T extends object>(object: T | null | undefined): Array<T[keyof T]>;
|
2422 | /**
|
2423 | * @see _.values
|
2424 | */
|
2425 | values(object: any): any[];
|
2426 | }
|
2427 | interface String {
|
2428 | /**
|
2429 | * @see _.values
|
2430 | */
|
2431 | values(): Collection<string>;
|
2432 | }
|
2433 | interface Object<T> {
|
2434 | /**
|
2435 | * @see _.values
|
2436 | */
|
2437 | values(): Collection<T[keyof T]>;
|
2438 | }
|
2439 | interface ObjectChain<T> {
|
2440 | /**
|
2441 | * @see _.values
|
2442 | */
|
2443 | values(): CollectionChain<T[keyof T]>;
|
2444 | }
|
2445 | interface StringChain {
|
2446 | /**
|
2447 | * @see _.values
|
2448 | */
|
2449 | values(): CollectionChain<string>;
|
2450 | }
|
2451 | interface StringNullableChain {
|
2452 | /**
|
2453 | * @see _.values
|
2454 | */
|
2455 | values(): CollectionChain<string>;
|
2456 | }
|
2457 | interface LoDashStatic {
|
2458 | /**
|
2459 | * Creates an array of the own and inherited enumerable property values of object.
|
2460 | *
|
2461 | * @param object The object to query.
|
2462 | * @return Returns the array of property values.
|
2463 | */
|
2464 | valuesIn<T>(object: Dictionary<T> | NumericDictionary<T> | List<T> | null | undefined): T[];
|
2465 | /**
|
2466 | * @see _.valuesIn
|
2467 | */
|
2468 | valuesIn<T extends object>(object: T | null | undefined): Array<T[keyof T]>;
|
2469 | }
|
2470 | interface String {
|
2471 | /**
|
2472 | * @see _.valuesIn
|
2473 | */
|
2474 | valuesIn(): Collection<string>;
|
2475 | }
|
2476 | interface Object<T> {
|
2477 | /**
|
2478 | * @see _.valuesIn
|
2479 | */
|
2480 | valuesIn(): Collection<T[keyof T]>;
|
2481 | }
|
2482 | interface StringChain {
|
2483 | /**
|
2484 | * @see _.valuesIn
|
2485 | */
|
2486 | valuesIn(): CollectionChain<string>;
|
2487 | }
|
2488 | interface StringNullableChain {
|
2489 | /**
|
2490 | * @see _.valuesIn
|
2491 | */
|
2492 | valuesIn(): CollectionChain<string>;
|
2493 | }
|
2494 | interface ObjectChain<T> {
|
2495 | /**
|
2496 | * @see _.valuesIn
|
2497 | */
|
2498 | valuesIn(): CollectionChain<T[keyof T]>;
|
2499 | }
|
2500 | }
|
2501 |
|
\ | No newline at end of file |