Skip to content

Commit 63445cd

Browse files
committed
fix: set missing default type value
1 parent fcfd703 commit 63445cd

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/utils/count-by/docs/types

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/utils/count-by/docs/types/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ interface Results<T> {
102102
* var out = countBy( arr, indicator );
103103
* // returns { 'b': 3, 'f': 1 }
104104
*/
105-
declare function countBy<T>( collection: Collection<T>, indicator: Indicator<T> ): Results<T>;
105+
declare function countBy<T = unknown>( collection: Collection<T>, indicator: Indicator<T> ): Results<T>;
106106

107107
/**
108108
* Groups values according to an indicator function and returns group counts.
@@ -133,7 +133,7 @@ declare function countBy<T>( collection: Collection<T>, indicator: Indicator<T>
133133
* var out = countBy( arr, indicator );
134134
* // returns { 'b': 3, 'f': 1 }
135135
*/
136-
declare function countBy<T>( collection: Collection<T>, options: Options<T>, indicator: Indicator<T> ): Results<T>;
136+
declare function countBy<T = unknown>( collection: Collection<T>, options: Options<T>, indicator: Indicator<T> ): Results<T>;
137137

138138

139139
// EXPORTS //

0 commit comments

Comments
 (0)