Skip to content

Commit b128b6a

Browse files
committed
chore: fix ExpectType by supplying correct number of generic parameters
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: passed - task: lint_license_headers status: passed ---
1 parent dfac043 commit b128b6a

File tree

5 files changed

+5
-5
lines changed
  • lib/node_modules/@stdlib/array/base

5 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/array/base/group-entries-by/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function indicator( v: string ): string {
3535
{
3636
const x = [ 'foo', 'bar' ];
3737

38-
groupEntriesBy( x, indicator ); // $ExpectType EntriesResults<Key, string>
38+
groupEntriesBy( x, indicator ); // $ExpectType EntriesResults<string>
3939
}
4040

4141
// The compiler throws an error if the function is provided a first argument which is not an array...

lib/node_modules/@stdlib/array/base/group-indices-by/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function indicator( v: string ): string {
3535
{
3636
const x = [ 'foo', 'bar' ];
3737

38-
groupIndicesBy( x, indicator ); // $ExpectType IndicesResults<Key, number>
38+
groupIndicesBy( x, indicator ); // $ExpectType IndicesResults<number>
3939
}
4040

4141
// The compiler throws an error if the function is provided a first argument which is not an array...

lib/node_modules/@stdlib/array/base/group-indices/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import groupIndices = require( './index' );
2626
const x = [ 1, 2, 3 ];
2727
const g = [ 0, 0, 0 ];
2828

29-
groupIndices( x, g ); // $ExpectType IndicesResults<Key, number>
29+
groupIndices( x, g ); // $ExpectType IndicesResults<number>
3030
}
3131

3232
// The compiler throws an error if the function is provided a first argument which is not an array...

lib/node_modules/@stdlib/array/base/group-values-by/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function indicator( v: string ): string {
3535
{
3636
const x = [ 'foo', 'bar' ];
3737

38-
groupValuesBy( x, indicator ); // $ExpectType ValuesResults<Key, string>
38+
groupValuesBy( x, indicator ); // $ExpectType ValuesResults<string>
3939
}
4040

4141
// The compiler throws an error if the function is provided a first argument which is not an array...

lib/node_modules/@stdlib/array/base/group-values/docs/types/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import groupValues = require( './index' );
2626
const x = [ 1, 2, 3 ];
2727
const g = [ 0, 0, 0 ];
2828

29-
groupValues( x, g ); // $ExpectType ValuesResults<Key, number>
29+
groupValues( x, g ); // $ExpectType ValuesResults<number>
3030
}
3131

3232
// The compiler throws an error if the function is provided a first argument which is not an array...

0 commit comments

Comments
 (0)