Skip to content

Commit c82dc90

Browse files
committed
feat: add index types and reduce duplication
--- 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: na - task: lint_license_headers status: passed ---
1 parent 0c85b4d commit c82dc90

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

lib/node_modules/@stdlib/types/index.d.ts

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3550,6 +3550,11 @@ declare module '@stdlib/types/ndarray' {
35503550
*/
35513551
type BooleanAndGenericDataTypeMap<T> = Remap<BooleanDataTypeMap & { 'generic': genericndarray<T> }>;
35523552

3553+
/**
3554+
* Integer index ndarray kinds.
3555+
*/
3556+
type IndexArrayKinds = '' | 'cartesian' | 'linear';
3557+
35533558
/**
35543559
* Boolean index ndarray.
35553560
*/
@@ -3570,11 +3575,26 @@ declare module '@stdlib/types/ndarray' {
35703575
*/
35713576
type TypedIndexArray = uint8ndarray | booleanndarray | int32ndarray;
35723577

3578+
/**
3579+
* Integer index ndarray.
3580+
*/
3581+
type IntegerIndexArray = int32ndarray | GenericIntegerIndexArray;
3582+
35733583
/**
35743584
* Index ndarray.
35753585
*/
35763586
type IndexArray = GenericIndexArray | TypedIndexArray;
35773587

3588+
/**
3589+
* Cartesian index ndarray.
3590+
*/
3591+
type CartesianIndexArray = IntegerIndexArray;
3592+
3593+
/**
3594+
* Linear index ndarray.
3595+
*/
3596+
type LinearIndexArray = IntegerIndexArray;
3597+
35783598
/**
35793599
* Interface describing an ndarray index object.
35803600
*/
@@ -3602,7 +3622,7 @@ declare module '@stdlib/types/ndarray' {
36023622
/**
36033623
* Read-only property returning the ndarray index "kind".
36043624
*/
3605-
kind: '' | 'cartesian' | 'linear';
3625+
kind: IndexArrayKinds;
36063626

36073627
/**
36083628
* Read-only property returning the ndarray index type.
@@ -3679,7 +3699,7 @@ declare module '@stdlib/types/ndarray' {
36793699
/**
36803700
* Read-only property returning the ndarray index "kind".
36813701
*/
3682-
kind: '' | 'cartesian' | 'linear';
3702+
kind: IndexArrayKinds;
36833703

36843704
/**
36853705
* Read-only property returning the underlying index ndarray data type.
@@ -3749,7 +3769,7 @@ declare module '@stdlib/types/ndarray' {
37493769
/**
37503770
* Read-only property returning the ndarray index "kind".
37513771
*/
3752-
kind: '' | 'cartesian' | 'linear';
3772+
kind: IndexArrayKinds;
37533773

37543774
/**
37553775
* Read-only property returning the underlying index ndarray data type.
@@ -3799,7 +3819,7 @@ declare module '@stdlib/types/ndarray' {
37993819
/**
38003820
* The index ndarray "kind".
38013821
*/
3802-
kind: '' | 'cartesian' | 'linear';
3822+
kind: IndexArrayKinds;
38033823

38043824
/**
38053825
* The type of index ndarray.
@@ -3874,7 +3894,7 @@ declare module '@stdlib/types/ndarray' {
38743894
/**
38753895
* The index ndarray "kind".
38763896
*/
3877-
kind: '' | 'cartesian' | 'linear';
3897+
kind: IndexArrayKinds;
38783898

38793899
/**
38803900
* The type of index ndarray.
@@ -3919,7 +3939,7 @@ declare module '@stdlib/types/ndarray' {
39193939
/**
39203940
* The index ndarray "kind".
39213941
*/
3922-
kind: '' | 'cartesian' | 'linear';
3942+
kind: IndexArrayKinds;
39233943

39243944
/**
39253945
* The type of index ndarray.

0 commit comments

Comments
 (0)