Skip to content

Commit fc42bf4

Browse files
committed
refactor: use more generic types
--- 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: passed - 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent bbc90c5 commit fc42bf4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/node_modules/@stdlib/array/base/last-index-of/docs/types/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
/// <reference types="@stdlib/types"/>
2222

23-
import { Collection, Complex64Array, Complex128Array } from '@stdlib/types/array';
23+
import { Collection, AccessorArrayLike } from '@stdlib/types/array';
2424

2525
/**
2626
* Returns the index of the last element which equals a provided search element.
@@ -50,7 +50,7 @@ import { Collection, Complex64Array, Complex128Array } from '@stdlib/types/array
5050
* var idx = lastIndexOf( x, 2, 3 );
5151
* // returns 1
5252
*/
53-
declare function lastIndexOf( x: Collection | Complex64Array | Complex128Array, searchElement: unknown, fromIndex: number ): number;
53+
declare function lastIndexOf( x: Collection | AccessorArrayLike<unknown>, searchElement: unknown, fromIndex: number ): number;
5454

5555

5656
// EXPORTS //

lib/node_modules/@stdlib/array/base/last-index-of/test/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ tape( 'the function returns `-1` if provided a starting index which exceeds the
333333
actual = lastIndexOf( [ 1, 2, 3 ], 0, -20 );
334334
t.strictEqual( actual, -1, 'returns expected value' );
335335

336-
actual = lastIndexOf( new Float64Array( [ 1.0, 2.0, 3.0 ] ), 0, -20 ); // eslint-disable-line max-len
336+
actual = lastIndexOf( new Float64Array( [ 1.0, 2.0, 3.0 ] ), 0, -20 );
337337
t.strictEqual( actual, -1, 'returns expected value' );
338338

339339
actual = lastIndexOf( new Int32Array( [ 1, 2, 3 ] ), 0, -20 );

0 commit comments

Comments
 (0)