diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 0dae4fe6..3bc3576e 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -29,6 +29,7 @@ Ognjen Jevremović Philipp Burckhardt Pranav Goswami Ricky Reusser +Robert Gislason Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com> Ryan Seal Seyyed Parsa Neshaei @@ -37,4 +38,3 @@ Stephannie Jiménez Gacha Yernar Yergaziyev orimiles5 <97595296+orimiles5@users.noreply.github.com> rei2hu -Robert Gislason diff --git a/async/any-by-right/docs/types/index.d.ts b/async/any-by-right/docs/types/index.d.ts index a6e0c28d..2dc180d0 100644 --- a/async/any-by-right/docs/types/index.d.ts +++ b/async/any-by-right/docs/types/index.d.ts @@ -220,7 +220,7 @@ interface AnyByRightAsync { * * anyByRightAsync( files, predicate, done ); */ - ( collection: Collection, predicate: Predicate, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, predicate: Predicate, done: Callback ): void; /** * Returns a function for testing whether at least one element in a collection passes a test implemented by a predicate function, iterating from right to left. @@ -336,7 +336,7 @@ interface AnyByRightAsync { * // Try to read each element in `files`: * anyByRightAsync( files, done ); */ - factory( predicate: Predicate ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( predicate: Predicate ): FactoryFunction; } /** diff --git a/async/any-by/docs/types/index.d.ts b/async/any-by/docs/types/index.d.ts index 238e6adf..843f9fbf 100644 --- a/async/any-by/docs/types/index.d.ts +++ b/async/any-by/docs/types/index.d.ts @@ -220,7 +220,7 @@ interface AnyByAsync { * * anyByAsync( files, predicate, done ); */ - ( collection: Collection, predicate: Predicate, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, predicate: Predicate, done: Callback ): void; /** * Returns a function for testing whether at least one element in a collection passes a test implemented by a predicate function. @@ -336,7 +336,7 @@ interface AnyByAsync { * // Try to read each element in `files`: * anyByAsync( files, done ); */ - factory( predicate: Predicate ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( predicate: Predicate ): FactoryFunction; } /** diff --git a/async/bifurcate-by/docs/types/index.d.ts b/async/bifurcate-by/docs/types/index.d.ts index cba6cfd1..d9c8480b 100644 --- a/async/bifurcate-by/docs/types/index.d.ts +++ b/async/bifurcate-by/docs/types/index.d.ts @@ -245,7 +245,7 @@ interface BifurcateByAsync { * * bifurcateByAsync( files, predicate, done ); */ - ( collection: Collection, predicate: Predicate, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, predicate: Predicate, done: Callback ): void; /** * Returns a function which splits values into two groups according to a predicate function. @@ -357,7 +357,7 @@ interface BifurcateByAsync { * // Try to read each element in `files`: * bifurcateByAsync( files, done ); */ - factory( predicate: Predicate ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( predicate: Predicate ): FactoryFunction; } /** diff --git a/async/count-by/docs/types/index.d.ts b/async/count-by/docs/types/index.d.ts index 7820e3f6..2f4ca327 100644 --- a/async/count-by/docs/types/index.d.ts +++ b/async/count-by/docs/types/index.d.ts @@ -249,7 +249,7 @@ interface CountByAsync { * * countByAsync( files, indicator, done ); */ - ( collection: Collection, indicator: Indicator, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, indicator: Indicator, done: Callback ): void; /** * Returns a function for grouping values according to an indicator function and returns group counts. @@ -361,7 +361,7 @@ interface CountByAsync { * // Try to read each element in `files`: * countByAsync( files, done ); */ - factory( indicator: Indicator ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( indicator: Indicator ): FactoryFunction; } /** diff --git a/async/every-by-right/docs/types/index.d.ts b/async/every-by-right/docs/types/index.d.ts index 3d133567..13ace44c 100644 --- a/async/every-by-right/docs/types/index.d.ts +++ b/async/every-by-right/docs/types/index.d.ts @@ -221,7 +221,7 @@ interface EveryByRightAsync { * * everyByRightAsync( files, predicate, done ); */ - ( collection: Collection, predicate: Predicate, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, predicate: Predicate, done: Callback ): void; /** * Returns a function for testing whether all elements in a collection pass a test implemented by a predicate function, iterating from right to left. @@ -343,7 +343,7 @@ interface EveryByRightAsync { * // Try to read each element in `files`: * everyByRightAsync( files, done ); */ - factory( predicate: Predicate ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( predicate: Predicate ): FactoryFunction; } /** diff --git a/async/every-by/docs/types/index.d.ts b/async/every-by/docs/types/index.d.ts index 707a393f..e267947d 100644 --- a/async/every-by/docs/types/index.d.ts +++ b/async/every-by/docs/types/index.d.ts @@ -221,7 +221,7 @@ interface EveryByAsync { * * everyByAsync( files, predicate, done ); */ - ( collection: Collection, predicate: Predicate, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, predicate: Predicate, done: Callback ): void; /** * Returns a function for testing whether all elements in a collection pass a test implemented by a predicate function. @@ -343,7 +343,7 @@ interface EveryByAsync { * // Try to read each element in `files`: * everyByAsync( files, done ); */ - factory( predicate: Predicate ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( predicate: Predicate ): FactoryFunction; } /** diff --git a/async/for-each-right/docs/types/index.d.ts b/async/for-each-right/docs/types/index.d.ts index 28f0a768..7ec96689 100644 --- a/async/for-each-right/docs/types/index.d.ts +++ b/async/for-each-right/docs/types/index.d.ts @@ -217,7 +217,7 @@ interface ForEachRightAsync { * * forEachRightAsync( files, read, done ); */ - ( collection: Collection, fcn: Fcn, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, fcn: Fcn, done: Callback ): void; /** * Returns a function to invoke a function once for each element in a collection. @@ -328,7 +328,7 @@ interface ForEachRightAsync { * // Run `read` for each element in `files`: * forEachRightAsync( files, done ); */ - factory( fcn: Fcn ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( fcn: Fcn ): FactoryFunction; } /** diff --git a/async/for-each/docs/types/index.d.ts b/async/for-each/docs/types/index.d.ts index ac814ff7..fc09f535 100644 --- a/async/for-each/docs/types/index.d.ts +++ b/async/for-each/docs/types/index.d.ts @@ -217,7 +217,7 @@ interface ForEachAsync { * * forEachAsync( files, read, done ); */ - ( collection: Collection, fcn: Fcn, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, fcn: Fcn, done: Callback ): void; /** * Returns a function to invoke a function once for each element in a collection. @@ -328,7 +328,7 @@ interface ForEachAsync { * // Run `read` for each element in `files`: * forEachAsync( files, done ); */ - factory( fcn: Fcn ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( fcn: Fcn ): FactoryFunction; } /** diff --git a/async/group-by/docs/types/index.d.ts b/async/group-by/docs/types/index.d.ts index ea2c273a..8480cf4c 100644 --- a/async/group-by/docs/types/index.d.ts +++ b/async/group-by/docs/types/index.d.ts @@ -447,7 +447,7 @@ interface GroupByAsync { * * groupByAsync( files, indicator, done ); */ - ( collection: Collection, indicator: Indicator, done: ValuesCallback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, indicator: Indicator, done: ValuesCallback ): void; /** * Returns a function for grouping values according to an indicator function. @@ -673,7 +673,7 @@ interface GroupByAsync { * // Try to read each element in `files`: * groupByAsync( files, done ); */ - factory( indicator: Indicator ): ValuesFactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( indicator: Indicator ): ValuesFactoryFunction; } /** diff --git a/async/inmap-right/docs/types/index.d.ts b/async/inmap-right/docs/types/index.d.ts index c31cd64f..e68e9e73 100644 --- a/async/inmap-right/docs/types/index.d.ts +++ b/async/inmap-right/docs/types/index.d.ts @@ -235,7 +235,7 @@ interface InMapRightAsync { * * inmapRightAsync( files, read, done ); */ - ( collection: Collection, fcn: Fcn, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, fcn: Fcn, done: Callback ): void; /** * Returns a function to invoke a function once for each element in a collection and to update the collection in-place. @@ -345,7 +345,7 @@ interface InMapRightAsync { * // Run `read` for each element in `files`: * inmapRightAsync( files, done ); */ - factory( fcn: Fcn ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( fcn: Fcn ): FactoryFunction; } /** diff --git a/async/inmap/docs/types/index.d.ts b/async/inmap/docs/types/index.d.ts index 83384426..add6fbc8 100644 --- a/async/inmap/docs/types/index.d.ts +++ b/async/inmap/docs/types/index.d.ts @@ -235,7 +235,7 @@ interface InMapAsync { * * inmapAsync( files, read, done ); */ - ( collection: Collection, fcn: Fcn, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, fcn: Fcn, done: Callback ): void; /** * Returns a function to invoke a function once for each element in a collection and to update the collection in-place. @@ -345,7 +345,7 @@ interface InMapAsync { * // Run `read` for each element in `files`: * inmapAsync( files, done ); */ - factory( fcn: Fcn ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( fcn: Fcn ): FactoryFunction; } /** diff --git a/async/none-by-right/docs/types/index.d.ts b/async/none-by-right/docs/types/index.d.ts index 3eb2a4f2..60f462ad 100644 --- a/async/none-by-right/docs/types/index.d.ts +++ b/async/none-by-right/docs/types/index.d.ts @@ -220,7 +220,7 @@ interface NoneByRightAsync { * * noneByRightAsync( files, predicate, done ); */ - ( collection: Collection, predicate: Predicate, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, predicate: Predicate, done: Callback ): void; /** * Returns a function for testing whether all elements in a collection fail a test implemented by a predicate function, iterating from right to left. @@ -339,7 +339,7 @@ interface NoneByRightAsync { * // Try to read each element in `files`: * noneByRightAsync( files, done ); */ - factory( predicate: Predicate ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( predicate: Predicate ): FactoryFunction; } /** diff --git a/async/none-by/docs/types/index.d.ts b/async/none-by/docs/types/index.d.ts index 4b2a2497..d8783671 100644 --- a/async/none-by/docs/types/index.d.ts +++ b/async/none-by/docs/types/index.d.ts @@ -220,7 +220,7 @@ interface NoneByAsync { * * noneByAsync( files, predicate, done ); */ - ( collection: Collection, predicate: Predicate, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, predicate: Predicate, done: Callback ): void; /** * Returns a function for testing whether all elements in a collection fail a test implemented by a predicate function. @@ -339,7 +339,7 @@ interface NoneByAsync { * // Try to read each element in `files`: * noneByAsync( files, done ); */ - factory( predicate: Predicate ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( predicate: Predicate ): FactoryFunction; } /** diff --git a/async/reduce-right/docs/types/index.d.ts b/async/reduce-right/docs/types/index.d.ts index 80786cf1..16e05393 100644 --- a/async/reduce-right/docs/types/index.d.ts +++ b/async/reduce-right/docs/types/index.d.ts @@ -230,7 +230,7 @@ interface ReduceRightAsync { * }; * reduceRightAsync( files, acc, read, done ); */ - ( collection: Collection, initial: U, reducer: Reducer, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, initial: U, reducer: Reducer, done: Callback ): void; /** * Returns a function to apply a function against an accumulator and each element in a collection and return the accumulated result, iterating from right to left. @@ -347,7 +347,7 @@ interface ReduceRightAsync { * }; * reduceRightAsync( files, acc, done ); */ - factory( reducer: Reducer ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( reducer: Reducer ): FactoryFunction; } /** diff --git a/async/reduce/docs/types/index.d.ts b/async/reduce/docs/types/index.d.ts index 4e59aa1e..416a0a3e 100644 --- a/async/reduce/docs/types/index.d.ts +++ b/async/reduce/docs/types/index.d.ts @@ -225,7 +225,7 @@ interface ReduceAsync { * }; * reduceAsync( files, acc, read, done ); */ - ( collection: Collection, initial: U, reducer: Reducer, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, initial: U, reducer: Reducer, done: Callback ): void; /** * Returns a function to apply a function against an accumulator and each element in a collection and return the accumulated result. @@ -343,7 +343,7 @@ interface ReduceAsync { * }; * reduceAsync( files, acc, done ); */ - factory( reducer: Reducer ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( reducer: Reducer ): FactoryFunction; } /** diff --git a/async/some-by-right/docs/types/index.d.ts b/async/some-by-right/docs/types/index.d.ts index 2653fcd7..aca0fe22 100644 --- a/async/some-by-right/docs/types/index.d.ts +++ b/async/some-by-right/docs/types/index.d.ts @@ -226,7 +226,7 @@ interface SomeByRightAsync { * * someByRightAsync( files, 2, predicate, done ); */ - ( collection: Collection, n: number, predicate: Predicate, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, n: number, predicate: Predicate, done: Callback ): void; /** * Returns a function for testing whether a collection contains at least `n` elements which pass a test implemented by a predicate function, iterating from right to left. @@ -348,7 +348,7 @@ interface SomeByRightAsync { * // Try to read each element in `files`: * someByRightAsync( files, 2, done ); */ - factory( predicate: Predicate ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( predicate: Predicate ): FactoryFunction; } /** diff --git a/async/some-by/docs/types/index.d.ts b/async/some-by/docs/types/index.d.ts index f4486480..59474bfe 100644 --- a/async/some-by/docs/types/index.d.ts +++ b/async/some-by/docs/types/index.d.ts @@ -226,7 +226,7 @@ interface SomeByAsync { * * someByAsync( files, 2, predicate, done ); */ - ( collection: Collection, n: number, predicate: Predicate, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, n: number, predicate: Predicate, done: Callback ): void; /** * Returns a function for testing whether a collection contains at least `n` elements which pass a test implemented by a predicate function. @@ -343,7 +343,7 @@ interface SomeByAsync { * // Try to read each element in `files`: * someByAsync( files, 2, done ); */ - factory( predicate: Predicate ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( predicate: Predicate ): FactoryFunction; } /** diff --git a/async/tabulate-by/docs/types/index.d.ts b/async/tabulate-by/docs/types/index.d.ts index 812b55eb..76ce80d0 100644 --- a/async/tabulate-by/docs/types/index.d.ts +++ b/async/tabulate-by/docs/types/index.d.ts @@ -251,7 +251,7 @@ interface TabulateByAsync { * * tabulateByAsync( files, indicator, done ); */ - ( collection: Collection, indicator: Indicator, done: Callback ): void; // tslint:disable-line:no-unnecessary-generics + ( collection: Collection, indicator: Indicator, done: Callback ): void; /** * Returns a function for generating a frequency table according to an indicator function. @@ -379,7 +379,7 @@ interface TabulateByAsync { * // Try to read each element in `files`: * tabulateByAsync( files, done ); */ - factory( indicator: Indicator ): FactoryFunction; // tslint:disable-line:no-unnecessary-generics + factory( indicator: Indicator ): FactoryFunction; } /** diff --git a/bifurcate-by/docs/types/index.d.ts b/bifurcate-by/docs/types/index.d.ts index d01dfe06..8eb85d9b 100644 --- a/bifurcate-by/docs/types/index.d.ts +++ b/bifurcate-by/docs/types/index.d.ts @@ -122,7 +122,7 @@ type Predicate = Nullary | Unary | Binary; * var out = bifurcateBy( arr, predicate ); * // returns [ [ 'beep', 'boop', 'bar' ], [ 'foo' ] ] */ -declare function bifurcateBy( collection: Collection, predicate: Predicate ): [ Array, Array ]; // tslint:disable-line:no-unnecessary-generics +declare function bifurcateBy( collection: Collection, predicate: Predicate ): [ Array, Array ]; /** * Splits values into two groups according to a predicate function. diff --git a/count-by/docs/types/index.d.ts b/count-by/docs/types/index.d.ts index 0bc2d076..698daf63 100644 --- a/count-by/docs/types/index.d.ts +++ b/count-by/docs/types/index.d.ts @@ -102,7 +102,7 @@ interface Results { * var out = countBy( arr, indicator ); * // returns { 'b': 3, 'f': 1 } */ -declare function countBy( collection: Collection, indicator: Indicator ): Results; // tslint:disable-line:no-unnecessary-generics +declare function countBy( collection: Collection, indicator: Indicator ): Results; /** * Groups values according to an indicator function and returns group counts. diff --git a/group-by/docs/types/index.d.ts b/group-by/docs/types/index.d.ts index d4fffaca..4bc632b6 100644 --- a/group-by/docs/types/index.d.ts +++ b/group-by/docs/types/index.d.ts @@ -157,7 +157,7 @@ interface IndicesAndValuesResults { * var out = groupBy( arr, indicator ); * // returns { 'b': [ 'beep', 'boop', 'bar' ], 'f': [ 'foo' ] } */ -declare function groupBy( collection: Collection, indicator: Indicator ): ValuesResults; // tslint:disable-line:no-unnecessary-generics +declare function groupBy( collection: Collection, indicator: Indicator ): ValuesResults; /** * Groups values according to an indicator function.