diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index f8b8671a9..39d3d5f6f 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -5993,8 +5993,8 @@ result = _.memoize(testMemoizeFn, te result = (_(testMemoizeFn).memoize().value()); result = (_(testMemoizeFn).memoize(testMemoizeResolverFn).value()); -// _.modArgs -module TestModArgs { +// _.overArgs +module TestOverArgs { type Func1 = (a: boolean) => boolean; type Func2 = (a: boolean, b: boolean) => boolean; @@ -6007,43 +6007,43 @@ module TestModArgs { { let result: (a: string) => boolean; - result = _.modArgs boolean>(func1, transform1); - result = _.modArgs boolean>(func1, [transform1]); + result = _.overArgs boolean>(func1, transform1); + result = _.overArgs boolean>(func1, [transform1]); } { let result: (a: string, b: number) => boolean; - result = _.modArgs boolean>(func2, transform1, transform2); - result = _.modArgs boolean>(func2, [transform1, transform2]); + result = _.overArgs boolean>(func2, transform1, transform2); + result = _.overArgs boolean>(func2, [transform1, transform2]); } { let result: _.LoDashImplicitObjectWrapper<(a: string) => boolean>; - result = _(func1).modArgs<(a: string) => boolean>(transform1); - result = _(func1).modArgs<(a: string) => boolean>([transform1]); + result = _(func1).overArgs<(a: string) => boolean>(transform1); + result = _(func1).overArgs<(a: string) => boolean>([transform1]); } { let result: _.LoDashImplicitObjectWrapper<(a: string, b: number) => boolean>; - result = _(func2).modArgs<(a: string, b: number) => boolean>(transform1, transform2); - result = _(func2).modArgs<(a: string, b: number) => boolean>([transform1, transform2]); + result = _(func2).overArgs<(a: string, b: number) => boolean>(transform1, transform2); + result = _(func2).overArgs<(a: string, b: number) => boolean>([transform1, transform2]); } { let result: _.LoDashExplicitObjectWrapper<(a: string) => boolean>; - result = _(func1).chain().modArgs<(a: string) => boolean>(transform1); - result = _(func1).chain().modArgs<(a: string) => boolean>([transform1]); + result = _(func1).chain().overArgs<(a: string) => boolean>(transform1); + result = _(func1).chain().overArgs<(a: string) => boolean>([transform1]); } { let result: _.LoDashExplicitObjectWrapper<(a: string, b: number) => boolean>; - result = _(func2).chain().modArgs<(a: string, b: number) => boolean>(transform1, transform2); - result = _(func2).chain().modArgs<(a: string, b: number) => boolean>([transform1, transform2]); + result = _(func2).chain().overArgs<(a: string, b: number) => boolean>(transform1, transform2); + result = _(func2).chain().overArgs<(a: string, b: number) => boolean>([transform1, transform2]); } } diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index a713c97d7..5212735dc 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -21,7 +21,7 @@ TODO: - [x] Renamed _.first to _.head - [x] Renamed _.indexBy to _.keyBy - [x] Renamed _.invoke to _.invokeMap -- [ ] Renamed _.modArgs to _.overArgs +- [x] Renamed _.overArgs to _.overArgs - [ ] Renamed _.padLeft & _.padRight to _.padStart & _.padEnd - [ ] Renamed _.pairs to _.toPairs - [ ] Renamed _.rest to _.tail @@ -9620,7 +9620,7 @@ declare module _ { memoize(resolver?: Function): LoDashImplicitObjectWrapper; } - //_.modArgs + //_.overArgs (was _.modArgs) interface LoDashStatic { /** * Creates a function that runs each argument through a corresponding transform function. @@ -9630,15 +9630,15 @@ declare module _ { * of functions. * @return Returns the new function. */ - modArgs( + overArgs( func: T, ...transforms: Function[] ): TResult; /** - * @see _.modArgs + * @see _.overArgs */ - modArgs( + overArgs( func: T, transforms: Function[] ): TResult; @@ -9646,26 +9646,26 @@ declare module _ { interface LoDashImplicitObjectWrapper { /** - * @see _.modArgs + * @see _.overArgs */ - modArgs(...transforms: Function[]): LoDashImplicitObjectWrapper; + overArgs(...transforms: Function[]): LoDashImplicitObjectWrapper; /** - * @see _.modArgs + * @see _.overArgs */ - modArgs(transforms: Function[]): LoDashImplicitObjectWrapper; + overArgs(transforms: Function[]): LoDashImplicitObjectWrapper; } interface LoDashExplicitObjectWrapper { /** - * @see _.modArgs + * @see _.overArgs */ - modArgs(...transforms: Function[]): LoDashExplicitObjectWrapper; + overArgs(...transforms: Function[]): LoDashExplicitObjectWrapper; /** - * @see _.modArgs + * @see _.overArgs */ - modArgs(transforms: Function[]): LoDashExplicitObjectWrapper; + overArgs(transforms: Function[]): LoDashExplicitObjectWrapper; } //_.negate