mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Merge pull request #25522 from aj-r/lodash-omit-unset
Lodash omit unset
This commit is contained in:
32
types/lodash/common/array.d.ts
vendored
32
types/lodash/common/array.d.ts
vendored
@@ -929,28 +929,28 @@ declare module "../index" {
|
||||
// flattenDepth
|
||||
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Recursively flatten array up to depth times.
|
||||
*
|
||||
* @param array The array to recursively flatten.
|
||||
* @param number The maximum recursion depth.
|
||||
* @return Returns the new flattened array.
|
||||
*/
|
||||
flattenDepth<T>(array: ListOfRecursiveArraysOrValues<T> | null | undefined, depth?: number): T[];
|
||||
/**
|
||||
* Recursively flatten array up to depth times.
|
||||
*
|
||||
* @param array The array to recursively flatten.
|
||||
* @param number The maximum recursion depth.
|
||||
* @return Returns the new flattened array.
|
||||
*/
|
||||
flattenDepth<T>(array: ListOfRecursiveArraysOrValues<T> | null | undefined, depth?: number): T[];
|
||||
}
|
||||
|
||||
interface LoDashImplicitWrapper<TValue> {
|
||||
/**
|
||||
* @see _.flattenDeep
|
||||
*/
|
||||
flattenDepth<T>(this: LoDashImplicitWrapper<ListOfRecursiveArraysOrValues<T> | null | undefined>, depth?: number): LoDashImplicitWrapper<T[]>;
|
||||
/**
|
||||
* @see _.flattenDeep
|
||||
*/
|
||||
flattenDepth<T>(this: LoDashImplicitWrapper<ListOfRecursiveArraysOrValues<T> | null | undefined>, depth?: number): LoDashImplicitWrapper<T[]>;
|
||||
}
|
||||
|
||||
interface LoDashExplicitWrapper<TValue> {
|
||||
/**
|
||||
* @see _.flattenDeep
|
||||
*/
|
||||
flattenDepth<T>(this: LoDashExplicitWrapper<ListOfRecursiveArraysOrValues<T> | null | undefined>, depth?: number): LoDashExplicitWrapper<T[]>;
|
||||
/**
|
||||
* @see _.flattenDeep
|
||||
*/
|
||||
flattenDepth<T>(this: LoDashExplicitWrapper<ListOfRecursiveArraysOrValues<T> | null | undefined>, depth?: number): LoDashExplicitWrapper<T[]>;
|
||||
}
|
||||
|
||||
// fromPairs
|
||||
|
||||
2
types/lodash/common/common.d.ts
vendored
2
types/lodash/common/common.d.ts
vendored
@@ -217,6 +217,8 @@ declare module "../index" {
|
||||
type PropertyName = string | number | symbol;
|
||||
type PropertyPath = Many<PropertyName>;
|
||||
|
||||
type Omit<T, K extends keyof T> = Pick<T, ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never })[keyof T]>;
|
||||
|
||||
/** Common interface between Arrays and jQuery objects */
|
||||
type List<T> = ArrayLike<T>;
|
||||
|
||||
|
||||
36
types/lodash/common/object.d.ts
vendored
36
types/lodash/common/object.d.ts
vendored
@@ -2860,15 +2860,23 @@ declare module "../index" {
|
||||
*/
|
||||
omit<T extends AnyKindOfDictionary>(
|
||||
object: T | null | undefined,
|
||||
...paths: PropertyPath[]
|
||||
...paths: Array<Many<PropertyName>>
|
||||
): T;
|
||||
|
||||
/**
|
||||
* @see _.omit
|
||||
*/
|
||||
omit<T extends object, K extends keyof T>(
|
||||
object: T | null | undefined,
|
||||
...paths: Array<Many<K>>
|
||||
): Omit<T, K>;
|
||||
|
||||
/**
|
||||
* @see _.omit
|
||||
*/
|
||||
omit<T extends object>(
|
||||
object: T | null | undefined,
|
||||
...paths: PropertyPath[]
|
||||
...paths: Array<Many<PropertyName>>
|
||||
): PartialObject<T>;
|
||||
}
|
||||
|
||||
@@ -2878,15 +2886,23 @@ declare module "../index" {
|
||||
*/
|
||||
omit<T extends AnyKindOfDictionary>(
|
||||
this: LoDashImplicitWrapper<T | null | undefined>,
|
||||
...paths: PropertyPath[]
|
||||
...paths: Array<Many<PropertyName>>
|
||||
): LoDashImplicitWrapper<T>;
|
||||
|
||||
/**
|
||||
* @see _.omit
|
||||
*/
|
||||
omit<T extends object, K extends keyof T>(
|
||||
this: LoDashImplicitWrapper<T | null | undefined>,
|
||||
...paths: Array<Many<K>>
|
||||
): LoDashImplicitWrapper<Omit<T, K>>;
|
||||
|
||||
/**
|
||||
* @see _.omit
|
||||
*/
|
||||
omit<T extends object>(
|
||||
this: LoDashImplicitWrapper<T | null | undefined>,
|
||||
...paths: PropertyPath[]
|
||||
...paths: Array<Many<PropertyName>>
|
||||
): LoDashImplicitWrapper<PartialObject<T>>;
|
||||
}
|
||||
|
||||
@@ -2896,15 +2912,23 @@ declare module "../index" {
|
||||
*/
|
||||
omit<T extends AnyKindOfDictionary>(
|
||||
this: LoDashExplicitWrapper<T | null | undefined>,
|
||||
...paths: PropertyPath[]
|
||||
...paths: Array<Many<PropertyName>>
|
||||
): LoDashExplicitWrapper<T>;
|
||||
|
||||
/**
|
||||
* @see _.omit
|
||||
*/
|
||||
omit<T extends object, K extends keyof T>(
|
||||
this: LoDashExplicitWrapper<T | null | undefined>,
|
||||
...paths: Array<Many<K>>
|
||||
): LoDashExplicitWrapper<Omit<T, K>>;
|
||||
|
||||
/**
|
||||
* @see _.omit
|
||||
*/
|
||||
omit<T extends object>(
|
||||
this: LoDashExplicitWrapper<T | null | undefined>,
|
||||
...paths: PropertyPath[]
|
||||
...paths: Array<Many<PropertyName>>
|
||||
): LoDashExplicitWrapper<PartialObject<T>>;
|
||||
}
|
||||
|
||||
|
||||
329
types/lodash/fp.d.ts
vendored
329
types/lodash/fp.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// AUTO-GENERATED: do not modify this file directly.
|
||||
// If you need to make changes, modify generate-fp.ts (if necessary), then open a terminal in types/lodash/scripts, and do:
|
||||
// npm run fp
|
||||
// npm install && npm run generate
|
||||
|
||||
import lodash = require("./index");
|
||||
|
||||
@@ -60,7 +60,14 @@ declare namespace _ {
|
||||
}
|
||||
type LodashAssign1x1<TObject> = <TSource>(source: TSource) => TObject & TSource;
|
||||
type LodashAssign1x2<TSource> = <TObject>(object: TObject) => TObject & TSource;
|
||||
type LodashAssignAll = (object: ReadonlyArray<any>) => any;
|
||||
interface LodashAssignAll {
|
||||
<TObject, TSource>(object: [TObject, TSource]): TObject & TSource;
|
||||
<TObject, TSource1, TSource2>(object: [TObject, TSource1, TSource2]): TObject & TSource1 & TSource2;
|
||||
<TObject, TSource1, TSource2, TSource3>(object: [TObject, TSource1, TSource2, TSource3]): TObject & TSource1 & TSource2 & TSource3;
|
||||
<TObject, TSource1, TSource2, TSource3, TSource4>(object: [TObject, TSource1, TSource2, TSource3, TSource4]): TObject & TSource1 & TSource2 & TSource3 & TSource4;
|
||||
<TObject>(object: [TObject]): TObject;
|
||||
(object: ReadonlyArray<any>): any;
|
||||
}
|
||||
interface LodashAssignAllWith {
|
||||
(customizer: lodash.AssignCustomizer): LodashAssignAllWith1x1;
|
||||
(customizer: lodash.__, args: ReadonlyArray<any>): LodashAssignAllWith1x2;
|
||||
@@ -75,7 +82,14 @@ declare namespace _ {
|
||||
}
|
||||
type LodashAssignIn1x1<TObject> = <TSource>(source: TSource) => TObject & TSource;
|
||||
type LodashAssignIn1x2<TSource> = <TObject>(object: TObject) => TObject & TSource;
|
||||
type LodashAssignInAll = <TResult>(object: ReadonlyArray<any>) => TResult;
|
||||
interface LodashAssignInAll {
|
||||
<TObject, TSource>(object: [TObject, TSource]): TObject & TSource;
|
||||
<TObject, TSource1, TSource2>(object: [TObject, TSource1, TSource2]): TObject & TSource1 & TSource2;
|
||||
<TObject, TSource1, TSource2, TSource3>(object: [TObject, TSource1, TSource2, TSource3]): TObject & TSource1 & TSource2 & TSource3;
|
||||
<TObject, TSource1, TSource2, TSource3, TSource4>(object: [TObject, TSource1, TSource2, TSource3, TSource4]): TObject & TSource1 & TSource2 & TSource3 & TSource4;
|
||||
<TObject>(object: [TObject]): TObject;
|
||||
<TResult>(object: ReadonlyArray<any>): TResult;
|
||||
}
|
||||
interface LodashAssignInAllWith {
|
||||
(customizer: lodash.AssignCustomizer): LodashAssignInAllWith1x1;
|
||||
(customizer: lodash.__, args: ReadonlyArray<any>): LodashAssignInAllWith1x2;
|
||||
@@ -453,7 +467,14 @@ declare namespace _ {
|
||||
}
|
||||
type LodashDefaults1x1<TSource> = <TObject>(object: TObject) => TSource & TObject;
|
||||
type LodashDefaults1x2<TObject> = <TSource>(source: TSource) => TSource & TObject;
|
||||
type LodashDefaultsAll = (object: ReadonlyArray<any>) => any;
|
||||
interface LodashDefaultsAll {
|
||||
<TObject, TSource>(object: [TObject, TSource]): TSource & TObject;
|
||||
<TObject, TSource1, TSource2>(object: [TObject, TSource1, TSource2]): TSource2 & TSource1 & TObject;
|
||||
<TObject, TSource1, TSource2, TSource3>(object: [TObject, TSource1, TSource2, TSource3]): TSource3 & TSource2 & TSource1 & TObject;
|
||||
<TObject, TSource1, TSource2, TSource3, TSource4>(object: [TObject, TSource1, TSource2, TSource3, TSource4]): TSource4 & TSource3 & TSource2 & TSource1 & TObject;
|
||||
<TObject>(object: [TObject]): TObject;
|
||||
(object: ReadonlyArray<any>): any;
|
||||
}
|
||||
interface LodashDefaultsDeep {
|
||||
(sources: any): LodashDefaultsDeep1x1;
|
||||
(sources: lodash.__, object: any): LodashDefaultsDeep1x2;
|
||||
@@ -546,11 +567,11 @@ declare namespace _ {
|
||||
type LodashDifferenceWith1x6<T1, T2> = (comparator: lodash.Comparator2<T1, T2>) => T1[];
|
||||
interface LodashUnset {
|
||||
(path: lodash.PropertyPath): LodashUnset1x1;
|
||||
(path: lodash.__, object: any): LodashUnset1x2;
|
||||
(path: lodash.PropertyPath, object: any): boolean;
|
||||
<T>(path: lodash.__, object: T): LodashUnset1x2<T>;
|
||||
<T>(path: lodash.PropertyPath, object: T): T;
|
||||
}
|
||||
type LodashUnset1x1 = (object: any) => boolean;
|
||||
type LodashUnset1x2 = (path: lodash.PropertyPath) => boolean;
|
||||
type LodashUnset1x1 = <T>(object: T) => T;
|
||||
type LodashUnset1x2<T> = (path: lodash.PropertyPath) => T;
|
||||
interface LodashDivide {
|
||||
(dividend: number): LodashDivide1x1;
|
||||
(dividend: lodash.__, divisor: number): LodashDivide1x2;
|
||||
@@ -704,7 +725,14 @@ declare namespace _ {
|
||||
}
|
||||
type LodashExtend1x1<TObject> = <TSource>(source: TSource) => TObject & TSource;
|
||||
type LodashExtend1x2<TSource> = <TObject>(object: TObject) => TObject & TSource;
|
||||
type LodashExtendAll = <TResult>(object: ReadonlyArray<any>) => TResult;
|
||||
interface LodashExtendAll {
|
||||
<TObject, TSource>(object: [TObject, TSource]): TObject & TSource;
|
||||
<TObject, TSource1, TSource2>(object: [TObject, TSource1, TSource2]): TObject & TSource1 & TSource2;
|
||||
<TObject, TSource1, TSource2, TSource3>(object: [TObject, TSource1, TSource2, TSource3]): TObject & TSource1 & TSource2 & TSource3;
|
||||
<TObject, TSource1, TSource2, TSource3, TSource4>(object: [TObject, TSource1, TSource2, TSource3, TSource4]): TObject & TSource1 & TSource2 & TSource3 & TSource4;
|
||||
<TObject>(object: [TObject]): TObject;
|
||||
<TResult>(object: ReadonlyArray<any>): TResult;
|
||||
}
|
||||
interface LodashExtendAllWith {
|
||||
(customizer: lodash.AssignCustomizer): LodashExtendAllWith1x1;
|
||||
(customizer: lodash.__, args: ReadonlyArray<any>): LodashExtendAllWith1x2;
|
||||
@@ -2171,7 +2199,13 @@ declare namespace _ {
|
||||
}
|
||||
type LodashMerge1x1<TObject> = <TSource>(source: TSource) => TObject & TSource;
|
||||
type LodashMerge1x2<TSource> = <TObject>(object: TObject) => TObject & TSource;
|
||||
type LodashMergeAll = (object: ReadonlyArray<any>) => any;
|
||||
interface LodashMergeAll {
|
||||
<TObject, TSource>(object: [TObject, TSource]): TObject & TSource;
|
||||
<TObject, TSource1, TSource2>(object: [TObject, TSource1, TSource2]): TObject & TSource1 & TSource2;
|
||||
<TObject, TSource1, TSource2, TSource3>(object: [TObject, TSource1, TSource2, TSource3]): TObject & TSource1 & TSource2 & TSource3;
|
||||
<TObject, TSource1, TSource2, TSource3, TSource4>(object: [TObject, TSource1, TSource2, TSource3, TSource4]): TObject & TSource1 & TSource2 & TSource3 & TSource4;
|
||||
(object: ReadonlyArray<any>): any;
|
||||
}
|
||||
interface LodashMergeAllWith {
|
||||
(customizer: lodash.MergeWithCustomizer): LodashMergeAllWith1x1;
|
||||
(customizer: lodash.__, args: ReadonlyArray<any>): LodashMergeAllWith1x2;
|
||||
@@ -2235,18 +2269,24 @@ declare namespace _ {
|
||||
type LodashNth1x2<T> = (n: number) => T | undefined;
|
||||
type LodashNthArg = (n: number) => (...args: any[]) => any;
|
||||
interface LodashOmit {
|
||||
(paths: lodash.PropertyPath): LodashOmit1x1;
|
||||
(paths: lodash.Many<lodash.PropertyName>): LodashOmit1x1;
|
||||
<T extends lodash.AnyKindOfDictionary>(paths: lodash.__, object: T | null | undefined): LodashOmit1x2<T>;
|
||||
<T extends lodash.AnyKindOfDictionary>(paths: lodash.PropertyPath, object: T | null | undefined): T;
|
||||
<T extends lodash.AnyKindOfDictionary>(paths: lodash.Many<lodash.PropertyName>, object: T | null | undefined): T;
|
||||
<T extends object, K extends keyof T>(paths: lodash.Many<K>): LodashOmit2x1<T, K>;
|
||||
<T extends object>(paths: lodash.__, object: T | null | undefined): LodashOmit2x2<T>;
|
||||
<T extends object>(paths: lodash.PropertyPath, object: T | null | undefined): lodash.PartialObject<T>;
|
||||
<T extends object, K extends keyof T>(paths: lodash.Many<K>, object: T | null | undefined): lodash.Omit<T, K>;
|
||||
<T extends object>(paths: lodash.Many<lodash.PropertyName>, object: T | null | undefined): lodash.PartialObject<T>;
|
||||
}
|
||||
interface LodashOmit1x1 {
|
||||
<T extends lodash.AnyKindOfDictionary>(object: T | null | undefined): T;
|
||||
<T extends object>(object: T | null | undefined): lodash.PartialObject<T>;
|
||||
}
|
||||
type LodashOmit1x2<T> = (paths: lodash.PropertyPath) => T;
|
||||
type LodashOmit2x2<T> = (paths: lodash.PropertyPath) => lodash.PartialObject<T>;
|
||||
type LodashOmit1x2<T> = (paths: lodash.Many<lodash.PropertyName>) => T;
|
||||
type LodashOmit2x1<T, K extends keyof T> = (object: T | null | undefined) => lodash.Omit<T, K>;
|
||||
interface LodashOmit2x2<T> {
|
||||
<K extends keyof T>(paths: lodash.Many<K>): lodash.Omit<T, K>;
|
||||
(paths: lodash.Many<lodash.PropertyName>): lodash.PartialObject<T>;
|
||||
}
|
||||
interface LodashOmitBy {
|
||||
<T>(predicate: lodash.ValueKeyIteratee<T>): LodashOmitBy1x1<T>;
|
||||
<T extends object>(predicate: lodash.__, object: T | null | undefined): LodashOmitBy1x2<T>;
|
||||
@@ -2435,21 +2475,252 @@ declare namespace _ {
|
||||
type LodashParseInt1x1 = (string: string) => number;
|
||||
type LodashParseInt1x2 = (radix: number) => number;
|
||||
interface LodashPartial {
|
||||
(args: ReadonlyArray<any>): LodashPartial1x1;
|
||||
(args: lodash.__, func: (...args: any[]) => any): LodashPartial1x2;
|
||||
(args: ReadonlyArray<any>, func: (...args: any[]) => any): (...args: any[]) => any;
|
||||
<T1, R>(func: lodash.Function1<T1, R>): LodashPartial1x1<T1, R>;
|
||||
<T1>(func: lodash.__, arg1: [T1]): LodashPartial1x2<T1>;
|
||||
<T1, R>(func: lodash.Function1<T1, R>, arg1: [T1]): lodash.Function0<R>;
|
||||
<T1, T2, R>(func: lodash.Function2<T1, T2, R>): LodashPartial2x1<T1, T2, R>;
|
||||
<T1, T2, R>(func: lodash.Function2<T1, T2, R>, arg1: [T1]): lodash.Function1< T2, R>;
|
||||
<T2>(func: lodash.__, plc1: [lodash.__, T2]): LodashPartial3x2<T2>;
|
||||
<T1, T2, R>(func: lodash.Function2<T1, T2, R>, plc1: [lodash.__, T2]): lodash.Function1<T1, R>;
|
||||
<T1, T2>(func: lodash.__, arg1: [T1, T2]): LodashPartial4x2<T1, T2>;
|
||||
<T1, T2, R>(func: lodash.Function2<T1, T2, R>, arg1: [T1, T2]): lodash.Function0< R>;
|
||||
<T1, T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>): LodashPartial5x1<T1, T2, T3, R>;
|
||||
<T1, T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>, arg1: [T1]): lodash.Function2< T2, T3, R>;
|
||||
<T1, T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>, plc1: [lodash.__, T2]): lodash.Function2<T1, T3, R>;
|
||||
<T1, T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>, arg1: [T1, T2]): lodash.Function1< T3, R>;
|
||||
<T3>(func: lodash.__, plc1: [lodash.__, lodash.__, T3]): LodashPartial8x2<T3>;
|
||||
<T1, T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>, plc1: [lodash.__, lodash.__, T3]): lodash.Function2<T1, T2, R>;
|
||||
<T1, T3>(func: lodash.__, arg1: [T1, lodash.__, T3]): LodashPartial9x2<T1, T3>;
|
||||
<T1, T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>, arg1: [T1, lodash.__, T3]): lodash.Function1< T2, R>;
|
||||
<T2, T3>(func: lodash.__, plc1: [lodash.__, T2, T3]): LodashPartial10x2<T2, T3>;
|
||||
<T1, T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>, plc1: [lodash.__, T2, T3]): lodash.Function1<T1, R>;
|
||||
<T1, T2, T3>(func: lodash.__, arg1: [T1, T2, T3]): LodashPartial11x2<T1, T2, T3>;
|
||||
<T1, T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>, arg1: [T1, T2, T3]): lodash.Function0< R>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>): LodashPartial12x1<T1, T2, T3, T4, R>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg1: [T1]): lodash.Function3< T2, T3, T4, R>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, plc1: [lodash.__, T2]): lodash.Function3<T1, T3, T4, R>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg1: [T1, T2]): lodash.Function2< T3, T4, R>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, plc1: [lodash.__, lodash.__, T3]): lodash.Function3<T1, T2, T4, R>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg1: [T1, lodash.__, T3]): lodash.Function2< T2, T4, R>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, plc1: [lodash.__, T2, T3]): lodash.Function2<T1, T4, R>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg1: [T1, T2, T3]): lodash.Function1< T4, R>;
|
||||
<T4>(func: lodash.__, plc1: [lodash.__, lodash.__, lodash.__, T4]): LodashPartial19x2<T4>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, plc1: [lodash.__, lodash.__, lodash.__, T4]): lodash.Function3<T1, T2, T3, R>;
|
||||
<T1, T4>(func: lodash.__, arg1: [T1, lodash.__, lodash.__, T4]): LodashPartial20x2<T1, T4>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg1: [T1, lodash.__, lodash.__, T4]): lodash.Function2< T2, T3, R>;
|
||||
<T2, T4>(func: lodash.__, plc1: [lodash.__, T2, lodash.__, T4]): LodashPartial21x2<T2, T4>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, plc1: [lodash.__, T2, lodash.__, T4]): lodash.Function2<T1, T3, R>;
|
||||
<T1, T2, T4>(func: lodash.__, arg1: [T1, T2, lodash.__, T4]): LodashPartial22x2<T1, T2, T4>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg1: [T1, T2, lodash.__, T4]): lodash.Function1< T3, R>;
|
||||
<T3, T4>(func: lodash.__, plc1: [lodash.__, lodash.__, T3, T4]): LodashPartial23x2<T3, T4>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, plc1: [lodash.__, lodash.__, T3, T4]): lodash.Function2<T1, T2, R>;
|
||||
<T1, T3, T4>(func: lodash.__, arg1: [T1, lodash.__, T3, T4]): LodashPartial24x2<T1, T3, T4>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg1: [T1, lodash.__, T3, T4]): lodash.Function1< T2, R>;
|
||||
<T2, T3, T4>(func: lodash.__, plc1: [lodash.__, T2, T3, T4]): LodashPartial25x2<T2, T3, T4>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, plc1: [lodash.__, T2, T3, T4]): lodash.Function1<T1, R>;
|
||||
<T1, T2, T3, T4>(func: lodash.__, arg1: [T1, T2, T3, T4]): LodashPartial26x2<T1, T2, T3, T4>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg1: [T1, T2, T3, T4]): lodash.Function0< R>;
|
||||
(func: (...args: any[]) => any): LodashPartial27x1;
|
||||
(func: lodash.__, args: ReadonlyArray<any>): LodashPartial27x2;
|
||||
(func: (...args: any[]) => any, args: ReadonlyArray<any>): (...args: any[]) => any;
|
||||
placeholder: lodash.__;
|
||||
}
|
||||
type LodashPartial1x1 = (func: (...args: any[]) => any) => (...args: any[]) => any;
|
||||
type LodashPartial1x2 = (args: ReadonlyArray<any>) => (...args: any[]) => any;
|
||||
type LodashPartial1x1<T1, R> = (arg1: [T1]) => lodash.Function0<R>;
|
||||
interface LodashPartial1x2<T1> {
|
||||
<R>(func: lodash.Function1<T1, R>): lodash.Function0<R>;
|
||||
<T2, R>(func: lodash.Function2<T1, T2, R>): lodash.Function1< T2, R>;
|
||||
<T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>): lodash.Function2< T2, T3, R>;
|
||||
<T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>): lodash.Function3< T2, T3, T4, R>;
|
||||
}
|
||||
interface LodashPartial2x1<T1, T2, R> {
|
||||
(arg1: [T1]): lodash.Function1< T2, R>;
|
||||
(plc1: [lodash.__, T2]): lodash.Function1<T1, R>;
|
||||
(arg1: [T1, T2]): lodash.Function0< R>;
|
||||
}
|
||||
interface LodashPartial3x2<T2> {
|
||||
<T1, R>(func: lodash.Function2<T1, T2, R>): lodash.Function1<T1, R>;
|
||||
<T1, T3, R>(func: lodash.Function3<T1, T2, T3, R>): lodash.Function2<T1, T3, R>;
|
||||
<T1, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>): lodash.Function3<T1, T3, T4, R>;
|
||||
}
|
||||
interface LodashPartial4x2<T1, T2> {
|
||||
<R>(func: lodash.Function2<T1, T2, R>): lodash.Function0< R>;
|
||||
<T3, R>(func: lodash.Function3<T1, T2, T3, R>): lodash.Function1< T3, R>;
|
||||
<T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>): lodash.Function2< T3, T4, R>;
|
||||
}
|
||||
interface LodashPartial5x1<T1, T2, T3, R> {
|
||||
(arg1: [T1]): lodash.Function2< T2, T3, R>;
|
||||
(plc1: [lodash.__, T2]): lodash.Function2<T1, T3, R>;
|
||||
(arg1: [T1, T2]): lodash.Function1< T3, R>;
|
||||
(plc1: [lodash.__, lodash.__, T3]): lodash.Function2<T1, T2, R>;
|
||||
(arg1: [T1, lodash.__, T3]): lodash.Function1< T2, R>;
|
||||
(plc1: [lodash.__, T2, T3]): lodash.Function1<T1, R>;
|
||||
(arg1: [T1, T2, T3]): lodash.Function0< R>;
|
||||
}
|
||||
interface LodashPartial8x2<T3> {
|
||||
<T1, T2, R>(func: lodash.Function3<T1, T2, T3, R>): lodash.Function2<T1, T2, R>;
|
||||
<T1, T2, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>): lodash.Function3<T1, T2, T4, R>;
|
||||
}
|
||||
interface LodashPartial9x2<T1, T3> {
|
||||
<T2, R>(func: lodash.Function3<T1, T2, T3, R>): lodash.Function1< T2, R>;
|
||||
<T2, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>): lodash.Function2< T2, T4, R>;
|
||||
}
|
||||
interface LodashPartial10x2<T2, T3> {
|
||||
<T1, R>(func: lodash.Function3<T1, T2, T3, R>): lodash.Function1<T1, R>;
|
||||
<T1, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>): lodash.Function2<T1, T4, R>;
|
||||
}
|
||||
interface LodashPartial11x2<T1, T2, T3> {
|
||||
<R>(func: lodash.Function3<T1, T2, T3, R>): lodash.Function0< R>;
|
||||
<T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>): lodash.Function1< T4, R>;
|
||||
}
|
||||
interface LodashPartial12x1<T1, T2, T3, T4, R> {
|
||||
(arg1: [T1]): lodash.Function3< T2, T3, T4, R>;
|
||||
(plc1: [lodash.__, T2]): lodash.Function3<T1, T3, T4, R>;
|
||||
(arg1: [T1, T2]): lodash.Function2< T3, T4, R>;
|
||||
(plc1: [lodash.__, lodash.__, T3]): lodash.Function3<T1, T2, T4, R>;
|
||||
(arg1: [T1, lodash.__, T3]): lodash.Function2< T2, T4, R>;
|
||||
(plc1: [lodash.__, T2, T3]): lodash.Function2<T1, T4, R>;
|
||||
(arg1: [T1, T2, T3]): lodash.Function1< T4, R>;
|
||||
(plc1: [lodash.__, lodash.__, lodash.__, T4]): lodash.Function3<T1, T2, T3, R>;
|
||||
(arg1: [T1, lodash.__, lodash.__, T4]): lodash.Function2< T2, T3, R>;
|
||||
(plc1: [lodash.__, T2, lodash.__, T4]): lodash.Function2<T1, T3, R>;
|
||||
(arg1: [T1, T2, lodash.__, T4]): lodash.Function1< T3, R>;
|
||||
(plc1: [lodash.__, lodash.__, T3, T4]): lodash.Function2<T1, T2, R>;
|
||||
(arg1: [T1, lodash.__, T3, T4]): lodash.Function1< T2, R>;
|
||||
(plc1: [lodash.__, T2, T3, T4]): lodash.Function1<T1, R>;
|
||||
(arg1: [T1, T2, T3, T4]): lodash.Function0< R>;
|
||||
}
|
||||
type LodashPartial19x2<T4> = <T1, T2, T3, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function3<T1, T2, T3, R>;
|
||||
type LodashPartial20x2<T1, T4> = <T2, T3, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function2< T2, T3, R>;
|
||||
type LodashPartial21x2<T2, T4> = <T1, T3, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function2<T1, T3, R>;
|
||||
type LodashPartial22x2<T1, T2, T4> = <T3, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function1< T3, R>;
|
||||
type LodashPartial23x2<T3, T4> = <T1, T2, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function2<T1, T2, R>;
|
||||
type LodashPartial24x2<T1, T3, T4> = <T2, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function1< T2, R>;
|
||||
type LodashPartial25x2<T2, T3, T4> = <T1, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function1<T1, R>;
|
||||
type LodashPartial26x2<T1, T2, T3, T4> = <R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function0< R>;
|
||||
type LodashPartial27x1 = (args: ReadonlyArray<any>) => (...args: any[]) => any;
|
||||
type LodashPartial27x2 = (func: (...args: any[]) => any) => (...args: any[]) => any;
|
||||
interface LodashPartialRight {
|
||||
(args: ReadonlyArray<any>): LodashPartialRight1x1;
|
||||
(args: lodash.__, func: (...args: any[]) => any): LodashPartialRight1x2;
|
||||
(args: ReadonlyArray<any>, func: (...args: any[]) => any): (...args: any[]) => any;
|
||||
<T1, R>(func: lodash.Function1<T1, R>): LodashPartialRight1x1<T1, R>;
|
||||
<T1>(func: lodash.__, arg1: [T1]): LodashPartialRight1x2<T1>;
|
||||
<T1, R>(func: lodash.Function1<T1, R>, arg1: [T1]): lodash.Function0<R>;
|
||||
<T1, T2, R>(func: lodash.Function2<T1, T2, R>): LodashPartialRight2x1<T1, T2, R>;
|
||||
<T1>(func: lodash.__, arg1: [T1, lodash.__]): LodashPartialRight2x2<T1>;
|
||||
<T1, T2, R>(func: lodash.Function2<T1, T2, R>, arg1: [T1, lodash.__]): lodash.Function1< T2, R>;
|
||||
<T2>(func: lodash.__, arg2: [T2]): LodashPartialRight3x2<T2>;
|
||||
<T1, T2, R>(func: lodash.Function2<T1, T2, R>, arg2: [T2]): lodash.Function1<T1, R>;
|
||||
<T1, T2>(func: lodash.__, arg1: [T1, T2]): LodashPartialRight4x2<T1, T2>;
|
||||
<T1, T2, R>(func: lodash.Function2<T1, T2, R>, arg1: [T1, T2]): lodash.Function0< R>;
|
||||
<T1, T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>): LodashPartialRight5x1<T1, T2, T3, R>;
|
||||
<T1>(func: lodash.__, arg1: [T1, lodash.__, lodash.__]): LodashPartialRight5x2<T1>;
|
||||
<T1, T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>, arg1: [T1, lodash.__, lodash.__]): lodash.Function2< T2, T3, R>;
|
||||
<T2>(func: lodash.__, arg2: [T2, lodash.__]): LodashPartialRight6x2<T2>;
|
||||
<T1, T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>, arg2: [T2, lodash.__]): lodash.Function2<T1, T3, R>;
|
||||
<T1, T2>(func: lodash.__, arg1: [T1, T2, lodash.__]): LodashPartialRight7x2<T1, T2>;
|
||||
<T1, T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>, arg1: [T1, T2, lodash.__]): lodash.Function1< T3, R>;
|
||||
<T3>(func: lodash.__, arg3: [T3]): LodashPartialRight8x2<T3>;
|
||||
<T1, T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>, arg3: [T3]): lodash.Function2<T1, T2, R>;
|
||||
<T1, T3>(func: lodash.__, arg1: [T1, lodash.__, T3]): LodashPartialRight9x2<T1, T3>;
|
||||
<T1, T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>, arg1: [T1, lodash.__, T3]): lodash.Function1< T2, R>;
|
||||
<T2, T3>(func: lodash.__, arg2: [T2, T3]): LodashPartialRight10x2<T2, T3>;
|
||||
<T1, T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>, arg2: [T2, T3]): lodash.Function1<T1, R>;
|
||||
<T1, T2, T3>(func: lodash.__, arg1: [T1, T2, T3]): LodashPartialRight11x2<T1, T2, T3>;
|
||||
<T1, T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>, arg1: [T1, T2, T3]): lodash.Function0< R>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>): LodashPartialRight12x1<T1, T2, T3, T4, R>;
|
||||
<T1>(func: lodash.__, arg1: [T1, lodash.__, lodash.__, lodash.__]): LodashPartialRight12x2<T1>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg1: [T1, lodash.__, lodash.__, lodash.__]): lodash.Function3< T2, T3, T4, R>;
|
||||
<T2>(func: lodash.__, arg2: [T2, lodash.__, lodash.__]): LodashPartialRight13x2<T2>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg2: [T2, lodash.__, lodash.__]): lodash.Function3<T1, T3, T4, R>;
|
||||
<T1, T2>(func: lodash.__, arg1: [T1, T2, lodash.__, lodash.__]): LodashPartialRight14x2<T1, T2>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg1: [T1, T2, lodash.__, lodash.__]): lodash.Function2< T3, T4, R>;
|
||||
<T3>(func: lodash.__, arg3: [T3, lodash.__]): LodashPartialRight15x2<T3>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg3: [T3, lodash.__]): lodash.Function3<T1, T2, T4, R>;
|
||||
<T1, T3>(func: lodash.__, arg1: [T1, lodash.__, T3, lodash.__]): LodashPartialRight16x2<T1, T3>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg1: [T1, lodash.__, T3, lodash.__]): lodash.Function2< T2, T4, R>;
|
||||
<T2, T3>(func: lodash.__, arg2: [T2, T3, lodash.__]): LodashPartialRight17x2<T2, T3>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg2: [T2, T3, lodash.__]): lodash.Function2<T1, T4, R>;
|
||||
<T1, T2, T3>(func: lodash.__, arg1: [T1, T2, T3, lodash.__]): LodashPartialRight18x2<T1, T2, T3>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg1: [T1, T2, T3, lodash.__]): lodash.Function1< T4, R>;
|
||||
<T4>(func: lodash.__, arg4: [T4]): LodashPartialRight19x2<T4>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg4: [T4]): lodash.Function3<T1, T2, T3, R>;
|
||||
<T1, T4>(func: lodash.__, arg1: [T1, lodash.__, lodash.__, T4]): LodashPartialRight20x2<T1, T4>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg1: [T1, lodash.__, lodash.__, T4]): lodash.Function2< T2, T3, R>;
|
||||
<T2, T4>(func: lodash.__, arg2: [T2, lodash.__, T4]): LodashPartialRight21x2<T2, T4>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg2: [T2, lodash.__, T4]): lodash.Function2<T1, T3, R>;
|
||||
<T1, T2, T4>(func: lodash.__, arg1: [T1, T2, lodash.__, T4]): LodashPartialRight22x2<T1, T2, T4>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg1: [T1, T2, lodash.__, T4]): lodash.Function1< T3, R>;
|
||||
<T3, T4>(func: lodash.__, arg3: [T3, T4]): LodashPartialRight23x2<T3, T4>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg3: [T3, T4]): lodash.Function2<T1, T2, R>;
|
||||
<T1, T3, T4>(func: lodash.__, arg1: [T1, lodash.__, T3, T4]): LodashPartialRight24x2<T1, T3, T4>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg1: [T1, lodash.__, T3, T4]): lodash.Function1< T2, R>;
|
||||
<T2, T3, T4>(func: lodash.__, arg2: [T2, T3, T4]): LodashPartialRight25x2<T2, T3, T4>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg2: [T2, T3, T4]): lodash.Function1<T1, R>;
|
||||
<T1, T2, T3, T4>(func: lodash.__, arg1: [T1, T2, T3, T4]): LodashPartialRight26x2<T1, T2, T3, T4>;
|
||||
<T1, T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>, arg1: [T1, T2, T3, T4]): lodash.Function0< R>;
|
||||
(func: (...args: any[]) => any): LodashPartialRight27x1;
|
||||
(func: lodash.__, args: ReadonlyArray<any>): LodashPartialRight27x2;
|
||||
(func: (...args: any[]) => any, args: ReadonlyArray<any>): (...args: any[]) => any;
|
||||
placeholder: lodash.__;
|
||||
}
|
||||
type LodashPartialRight1x1 = (func: (...args: any[]) => any) => (...args: any[]) => any;
|
||||
type LodashPartialRight1x2 = (args: ReadonlyArray<any>) => (...args: any[]) => any;
|
||||
type LodashPartialRight1x1<T1, R> = (arg1: [T1]) => lodash.Function0<R>;
|
||||
type LodashPartialRight1x2<T1> = <R>(func: lodash.Function1<T1, R>) => lodash.Function0<R>;
|
||||
interface LodashPartialRight2x1<T1, T2, R> {
|
||||
(arg1: [T1, lodash.__]): lodash.Function1< T2, R>;
|
||||
(arg2: [T2]): lodash.Function1<T1, R>;
|
||||
(arg1: [T1, T2]): lodash.Function0< R>;
|
||||
}
|
||||
type LodashPartialRight2x2<T1> = <T2, R>(func: lodash.Function2<T1, T2, R>) => lodash.Function1< T2, R>;
|
||||
type LodashPartialRight3x2<T2> = <T1, R>(func: lodash.Function2<T1, T2, R>) => lodash.Function1<T1, R>;
|
||||
type LodashPartialRight4x2<T1, T2> = <R>(func: lodash.Function2<T1, T2, R>) => lodash.Function0< R>;
|
||||
interface LodashPartialRight5x1<T1, T2, T3, R> {
|
||||
(arg1: [T1, lodash.__, lodash.__]): lodash.Function2< T2, T3, R>;
|
||||
(arg2: [T2, lodash.__]): lodash.Function2<T1, T3, R>;
|
||||
(arg1: [T1, T2, lodash.__]): lodash.Function1< T3, R>;
|
||||
(arg3: [T3]): lodash.Function2<T1, T2, R>;
|
||||
(arg1: [T1, lodash.__, T3]): lodash.Function1< T2, R>;
|
||||
(arg2: [T2, T3]): lodash.Function1<T1, R>;
|
||||
(arg1: [T1, T2, T3]): lodash.Function0< R>;
|
||||
}
|
||||
type LodashPartialRight5x2<T1> = <T2, T3, R>(func: lodash.Function3<T1, T2, T3, R>) => lodash.Function2< T2, T3, R>;
|
||||
type LodashPartialRight6x2<T2> = <T1, T3, R>(func: lodash.Function3<T1, T2, T3, R>) => lodash.Function2<T1, T3, R>;
|
||||
type LodashPartialRight7x2<T1, T2> = <T3, R>(func: lodash.Function3<T1, T2, T3, R>) => lodash.Function1< T3, R>;
|
||||
type LodashPartialRight8x2<T3> = <T1, T2, R>(func: lodash.Function3<T1, T2, T3, R>) => lodash.Function2<T1, T2, R>;
|
||||
type LodashPartialRight9x2<T1, T3> = <T2, R>(func: lodash.Function3<T1, T2, T3, R>) => lodash.Function1< T2, R>;
|
||||
type LodashPartialRight10x2<T2, T3> = <T1, R>(func: lodash.Function3<T1, T2, T3, R>) => lodash.Function1<T1, R>;
|
||||
type LodashPartialRight11x2<T1, T2, T3> = <R>(func: lodash.Function3<T1, T2, T3, R>) => lodash.Function0< R>;
|
||||
interface LodashPartialRight12x1<T1, T2, T3, T4, R> {
|
||||
(arg1: [T1, lodash.__, lodash.__, lodash.__]): lodash.Function3< T2, T3, T4, R>;
|
||||
(arg2: [T2, lodash.__, lodash.__]): lodash.Function3<T1, T3, T4, R>;
|
||||
(arg1: [T1, T2, lodash.__, lodash.__]): lodash.Function2< T3, T4, R>;
|
||||
(arg3: [T3, lodash.__]): lodash.Function3<T1, T2, T4, R>;
|
||||
(arg1: [T1, lodash.__, T3, lodash.__]): lodash.Function2< T2, T4, R>;
|
||||
(arg2: [T2, T3, lodash.__]): lodash.Function2<T1, T4, R>;
|
||||
(arg1: [T1, T2, T3, lodash.__]): lodash.Function1< T4, R>;
|
||||
(arg4: [T4]): lodash.Function3<T1, T2, T3, R>;
|
||||
(arg1: [T1, lodash.__, lodash.__, T4]): lodash.Function2< T2, T3, R>;
|
||||
(arg2: [T2, lodash.__, T4]): lodash.Function2<T1, T3, R>;
|
||||
(arg1: [T1, T2, lodash.__, T4]): lodash.Function1< T3, R>;
|
||||
(arg3: [T3, T4]): lodash.Function2<T1, T2, R>;
|
||||
(arg1: [T1, lodash.__, T3, T4]): lodash.Function1< T2, R>;
|
||||
(arg2: [T2, T3, T4]): lodash.Function1<T1, R>;
|
||||
(arg1: [T1, T2, T3, T4]): lodash.Function0< R>;
|
||||
}
|
||||
type LodashPartialRight12x2<T1> = <T2, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function3< T2, T3, T4, R>;
|
||||
type LodashPartialRight13x2<T2> = <T1, T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function3<T1, T3, T4, R>;
|
||||
type LodashPartialRight14x2<T1, T2> = <T3, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function2< T3, T4, R>;
|
||||
type LodashPartialRight15x2<T3> = <T1, T2, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function3<T1, T2, T4, R>;
|
||||
type LodashPartialRight16x2<T1, T3> = <T2, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function2< T2, T4, R>;
|
||||
type LodashPartialRight17x2<T2, T3> = <T1, T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function2<T1, T4, R>;
|
||||
type LodashPartialRight18x2<T1, T2, T3> = <T4, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function1< T4, R>;
|
||||
type LodashPartialRight19x2<T4> = <T1, T2, T3, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function3<T1, T2, T3, R>;
|
||||
type LodashPartialRight20x2<T1, T4> = <T2, T3, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function2< T2, T3, R>;
|
||||
type LodashPartialRight21x2<T2, T4> = <T1, T3, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function2<T1, T3, R>;
|
||||
type LodashPartialRight22x2<T1, T2, T4> = <T3, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function1< T3, R>;
|
||||
type LodashPartialRight23x2<T3, T4> = <T1, T2, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function2<T1, T2, R>;
|
||||
type LodashPartialRight24x2<T1, T3, T4> = <T2, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function1< T2, R>;
|
||||
type LodashPartialRight25x2<T2, T3, T4> = <T1, R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function1<T1, R>;
|
||||
type LodashPartialRight26x2<T1, T2, T3, T4> = <R>(func: lodash.Function4<T1, T2, T3, T4, R>) => lodash.Function0< R>;
|
||||
type LodashPartialRight27x1 = (args: ReadonlyArray<any>) => (...args: any[]) => any;
|
||||
type LodashPartialRight27x2 = (func: (...args: any[]) => any) => (...args: any[]) => any;
|
||||
interface LodashPartition {
|
||||
<T>(callback: lodash.ValueIteratee<T>): LodashPartition1x1<T>;
|
||||
<T>(callback: lodash.__, collection: lodash.List<T> | null | undefined): LodashPartition1x2<T>;
|
||||
@@ -4055,7 +4326,13 @@ declare namespace _ {
|
||||
}
|
||||
type LodashZip1x1<T1> = <T2>(arrays2: lodash.List<T2>) => Array<[T1 | undefined, T2 | undefined]>;
|
||||
type LodashZip1x2<T2> = <T1>(arrays1: lodash.List<T1>) => Array<[T1 | undefined, T2 | undefined]>;
|
||||
type LodashZipAll = <T>(arrays: ReadonlyArray<lodash.List<T> | null | undefined>) => Array<Array<T | undefined>>;
|
||||
interface LodashZipAll {
|
||||
<T1, T2>(arrays1: [lodash.List<T1>, lodash.List<T2>]): Array<[T1 | undefined, T2 | undefined]>;
|
||||
<T1, T2, T3>(arrays1: [lodash.List<T1>, lodash.List<T2>, lodash.List<T3>]): Array<[T1 | undefined, T2 | undefined, T3 | undefined]>;
|
||||
<T1, T2, T3, T4>(arrays1: [lodash.List<T1>, lodash.List<T2>, lodash.List<T3>, lodash.List<T4>]): Array<[T1 | undefined, T2 | undefined, T3 | undefined, T4 | undefined]>;
|
||||
<T1, T2, T3, T4, T5>(arrays1: [lodash.List<T1>, lodash.List<T2>, lodash.List<T3>, lodash.List<T4>, lodash.List<T5>]): Array<[T1 | undefined, T2 | undefined, T3 | undefined, T4 | undefined, T5 | undefined]>;
|
||||
<T>(arrays: ReadonlyArray<lodash.List<T> | null | undefined>): Array<Array<T | undefined>>;
|
||||
}
|
||||
interface LodashZipObject {
|
||||
(props: lodash.List<lodash.PropertyName>): LodashZipObject1x1;
|
||||
<T>(props: lodash.__, values: lodash.List<T>): LodashZipObject1x2<T>;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -174,15 +174,14 @@ async function processDefinitions(filePaths: string[], commonTypes: string[]): P
|
||||
} else if (args.length > 4 || definition.name === "flow" || definition.name === "flowRight") {
|
||||
// Arity wasn't fixed by convert()
|
||||
isFixed = false;
|
||||
} else {
|
||||
// For some reason, convert() doesn't seems to tell us which functions have unchanged argument order.
|
||||
// So we have to hard-code it.
|
||||
const unchangedOrders = ["add", "assign", "assignIn", "bind", "bindKey", "concat", "difference", "divide", "eq",
|
||||
"gt", "gte", "isEqual", "lt", "lte", "matchesProperty", "merge", "multiply", "overArgs", "partial", "partialRight",
|
||||
"propertyOf", "random", "range", "rangeRight", "subtract", "zip", "zipObject", "zipObjectDeep"];
|
||||
if (unchangedOrders.includes(definition.name))
|
||||
args = _.sortBy(args as number[][], (a: number[]) => a[0]);
|
||||
}
|
||||
// For some reason, convert() doesn't seems to tell us which functions have unchanged argument order.
|
||||
// So we have to hard-code it.
|
||||
const unchangedOrders = ["add", "assign", "assignIn", "bind", "bindKey", "concat", "difference", "divide", "eq",
|
||||
"gt", "gte", "isEqual", "lt", "lte", "matchesProperty", "merge", "multiply", "overArgs", "partial", "partialRight",
|
||||
"propertyOf", "random", "range", "rangeRight", "subtract", "zip", "zipObject", "zipObjectDeep"];
|
||||
if (unchangedOrders.includes(definition.name))
|
||||
args = _.sortBy(args, a => typeof a === "number" ? a : a[0]);
|
||||
|
||||
return () => curryDefinition(definition, _.flatten(args), spreadIndex, isFixed);
|
||||
};
|
||||
@@ -324,6 +323,12 @@ function parseDefinitions(definitionString: string, startIndex: number, endIndex
|
||||
.map(o => _.trim(o, ","))
|
||||
.filter(o => !!o);
|
||||
overload.returnType = overloadString.substring(paramEndIndex + 2).trim();
|
||||
// Special case for unset: the return type should be the input type, not bolean. See https://github.com/DefinitelyTyped/DefinitelyTyped/issues/25361
|
||||
if (name === "unset") {
|
||||
overload.typeParams = [{ name: "T" }];
|
||||
overload.params[0] = overload.params[0].replace(/\bany\b/, "T");
|
||||
overload.returnType = "T";
|
||||
}
|
||||
currentDefinition.overloads.push(overload);
|
||||
} else {
|
||||
// This overload actually points to an interface. Try to find said interface and get the overloads from there.
|
||||
@@ -433,25 +438,33 @@ function curryDefinition(definition: Definition, paramOrder: number[], spreadInd
|
||||
// Spread/rest parameters could be in any of the following formats:
|
||||
// 1. The rest parameter is at spreadIndex, and it is the last parameter.
|
||||
// 2. The rest parameter is immediately after spreadIndex, e.g. assign(object, ...sources[]). In this case, convert it to assignAll(...object[])
|
||||
// 3. The rest parameter is not the last parameter, e.g. assignWith(object, ...sources[], customizer)
|
||||
// 3. The overload defines no rest parameters, e.g. mergeAll(T1, T2, T3)
|
||||
// 4. The rest parameter is not the last parameter, e.g. assignWith(object, ...sources[], customizer)
|
||||
if (spreadIndex === arity - 1) {
|
||||
// cases 1-2
|
||||
for (let i = 0; i < overloads.length; ++i) {
|
||||
const overload = overloads[i];
|
||||
if (overload.params.length === arity && overload.params[spreadIndex] && overload.params[spreadIndex].startsWith("...")) {
|
||||
// case 1
|
||||
overload.params[spreadIndex] = overload.params[spreadIndex].replace("...", "");
|
||||
} else if (overload.params.length === arity + 1 && overload.params[spreadIndex + 1] && overload.params[spreadIndex + 1].startsWith("...")) {
|
||||
// case 2
|
||||
overload.params.splice(spreadIndex + 1, 1);
|
||||
const parts = overload.params[spreadIndex].split(":").map(_.trim);
|
||||
parts[1] = `ReadonlyArray<${parts[1]}>`;
|
||||
overload.params[spreadIndex] = `${parts[0]}: ${parts[1]}`;
|
||||
} else if (overload.params.length >= arity && overload.params[spreadIndex] && !overload.params.some(p => p.startsWith("..."))) {
|
||||
// case 3
|
||||
const paramName = getParamName(overload.params[spreadIndex]);
|
||||
const spreadParamTypes = overload.params.slice(spreadIndex).map(getParamType);
|
||||
overload.params = overload.params.slice(0, spreadIndex);
|
||||
overload.params.push(`${paramName}: [${spreadParamTypes.join(", ")}]`);
|
||||
} else {
|
||||
_.pull(overloads, overload);
|
||||
--i;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// case 3
|
||||
// case 4
|
||||
const overload = overloads[0];
|
||||
overloads = [{
|
||||
jsdoc: overload.jsdoc,
|
||||
|
||||
16
types/lowdb/_lodash.d.ts
vendored
16
types/lowdb/_lodash.d.ts
vendored
@@ -1263,11 +1263,15 @@ declare module "./index" {
|
||||
): LoDashExplicitSyncWrapper<any>;
|
||||
omit<T extends _.AnyKindOfDictionary>(
|
||||
this: LoDashExplicitSyncWrapper<T | null | undefined>,
|
||||
...paths: _.PropertyPath[]
|
||||
...paths: Array<_.Many<_.PropertyName>>
|
||||
): LoDashExplicitSyncWrapper<T>;
|
||||
omit<T extends object, K extends keyof T>(
|
||||
this: LoDashExplicitSyncWrapper<T | null | undefined>,
|
||||
...paths: Array<_.Many<K>>
|
||||
): LoDashExplicitSyncWrapper<_.Omit<T, K>>;
|
||||
omit<T extends object>(
|
||||
this: LoDashExplicitSyncWrapper<T | null | undefined>,
|
||||
...paths: _.PropertyPath[]
|
||||
...paths: Array<_.Many<_.PropertyName>>
|
||||
): LoDashExplicitSyncWrapper<_.PartialObject<T>>;
|
||||
omitBy<T extends object>(
|
||||
this: LoDashExplicitSyncWrapper<T | null | undefined>,
|
||||
@@ -2827,11 +2831,15 @@ declare module "./index" {
|
||||
): LoDashExplicitAsyncWrapper<any>;
|
||||
omit<T extends _.AnyKindOfDictionary>(
|
||||
this: LoDashExplicitAsyncWrapper<T | null | undefined>,
|
||||
...paths: _.PropertyPath[]
|
||||
...paths: Array<_.Many<_.PropertyName>>
|
||||
): LoDashExplicitAsyncWrapper<T>;
|
||||
omit<T extends object, K extends keyof T>(
|
||||
this: LoDashExplicitAsyncWrapper<T | null | undefined>,
|
||||
...paths: Array<_.Many<K>>
|
||||
): LoDashExplicitAsyncWrapper<_.Omit<T, K>>;
|
||||
omit<T extends object>(
|
||||
this: LoDashExplicitAsyncWrapper<T | null | undefined>,
|
||||
...paths: _.PropertyPath[]
|
||||
...paths: Array<_.Many<_.PropertyName>>
|
||||
): LoDashExplicitAsyncWrapper<_.PartialObject<T>>;
|
||||
omitBy<T extends object>(
|
||||
this: LoDashExplicitAsyncWrapper<T | null | undefined>,
|
||||
|
||||
Reference in New Issue
Block a user