Skip to content

Commit e24d1a7

Browse files
committed
feat: update ndarray/base/assert TypeScript declarations
--- 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: passed - task: lint_license_headers status: passed ---
1 parent 05b6fa0 commit e24d1a7

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

  • lib/node_modules/@stdlib/ndarray/base/assert/docs/types

lib/node_modules/@stdlib/ndarray/base/assert/docs/types/index.d.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import isColumnMajor = require( '@stdlib/ndarray/base/assert/is-column-major' );
3131
import isColumnMajorContiguous = require( '@stdlib/ndarray/base/assert/is-column-major-contiguous' );
3232
import isColumnMajorString = require( '@stdlib/ndarray/base/assert/is-column-major-string' );
3333
import isComplexFloatingPointDataType = require( '@stdlib/ndarray/base/assert/is-complex-floating-point-data-type' );
34+
import isComplexFloatingPointDataTypeChar = require( '@stdlib/ndarray/base/assert/is-complex-floating-point-data-type-char' );
3435
import isContiguous = require( '@stdlib/ndarray/base/assert/is-contiguous' );
3536
import isDataType = require( '@stdlib/ndarray/base/assert/is-data-type' );
3637
import isDataTypeObject = require( '@stdlib/ndarray/base/assert/is-data-type-object' );
@@ -389,6 +390,57 @@ interface Namespace {
389390
*/
390391
isComplexFloatingPointDataType: typeof isComplexFloatingPointDataType;
391392

393+
/**
394+
* Tests whether an input value is a supported ndarray complex-valued floating-point data type single letter character abbreviation.
395+
*
396+
* @param v - value to test
397+
* @returns boolean indicating whether an input value is a supported ndarray complex-valued floating-point data type single letter character abbreviation
398+
*
399+
* @example
400+
* var bool = ns.isComplexFloatingPointDataTypeChar( 'r' );
401+
* // returns false
402+
*
403+
* bool = ns.isComplexFloatingPointDataTypeChar( 'c' );
404+
* // returns true
405+
*
406+
* bool = ns.isComplexFloatingPointDataTypeChar( 'z' );
407+
* // returns true
408+
*
409+
* bool = ns.isComplexFloatingPointDataTypeChar( 'f' );
410+
* // returns false
411+
*
412+
* bool = ns.isComplexFloatingPointDataTypeChar( 'd' );
413+
* // returns false
414+
*
415+
* bool = ns.isComplexFloatingPointDataTypeChar( 'o' );
416+
* // returns false
417+
*
418+
* bool = ns.isComplexFloatingPointDataTypeChar( 'k' );
419+
* // returns false
420+
*
421+
* bool = ns.isComplexFloatingPointDataTypeChar( 'i' );
422+
* // returns false
423+
*
424+
* bool = ns.isComplexFloatingPointDataTypeChar( 's' );
425+
* // returns false
426+
*
427+
* bool = ns.isComplexFloatingPointDataTypeChar( 't' );
428+
* // returns false
429+
*
430+
* bool = ns.isComplexFloatingPointDataTypeChar( 'u' );
431+
* // returns false
432+
*
433+
* bool = ns.isComplexFloatingPointDataTypeChar( 'b' );
434+
* // returns false
435+
*
436+
* bool = ns.isComplexFloatingPointDataTypeChar( 'a' );
437+
* // returns false
438+
*
439+
* bool = ns.isComplexFloatingPointDataTypeChar( 'foo' );
440+
* // returns false
441+
*/
442+
isComplexFloatingPointDataTypeChar: typeof isComplexFloatingPointDataTypeChar;
443+
392444
/**
393445
* Returns a boolean indicating if an array is contiguous.
394446
*

0 commit comments

Comments
 (0)