Skip to content

Commit b34ff7a

Browse files
committed
fix: return boolean to avoid misleading type predicate
--- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 220a673 commit b34ff7a

File tree

2 files changed

+2
-4
lines changed
  • lib/node_modules/@stdlib/assert

2 files changed

+2
-4
lines changed

lib/node_modules/@stdlib/assert/is-empty-array-like-object/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* var bool = isEmptyArrayLikeObject( '' );
4141
* // returns false
4242
*/
43-
declare function isEmptyArrayLikeObject( value: any ): value is ArrayLike<any>;
43+
declare function isEmptyArrayLikeObject( value: any ): boolean;
4444

4545

4646
// EXPORTS //

lib/node_modules/@stdlib/assert/is-empty-collection/docs/types/index.d.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020

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

23-
import { Collection } from '@stdlib/types/array';
24-
2523
/**
2624
* Tests if a value is an empty collection.
2725
*
@@ -44,7 +42,7 @@ import { Collection } from '@stdlib/types/array';
4442
* var bool = isEmptyCollection( {} );
4543
* // returns false
4644
*/
47-
declare function isEmptyCollection( value: any ): value is Collection;
45+
declare function isEmptyCollection( value: any ): boolean;
4846

4947

5048
// EXPORTS //

0 commit comments

Comments
 (0)