Skip to content

Commit 8e5acd2

Browse files
committed
refactor: use predefined types
1 parent e21bcc8 commit 8e5acd2

File tree

1 file changed

+1
-53
lines changed
  • lib/node_modules/@stdlib/array/base/flatten-by/docs/types

1 file changed

+1
-53
lines changed

lib/node_modules/@stdlib/array/base/flatten-by/docs/types/index.d.ts

+1-53
Original file line numberDiff line numberDiff line change
@@ -22,59 +22,7 @@
2222

2323
/// <reference types="@stdlib/types"/>
2424

25-
import { Collection } from '@stdlib/types/array';
26-
27-
// FIXME: shapes should be collections of a defined length
28-
29-
/**
30-
* One-dimensional array.
31-
*/
32-
type Array1D<T> = Collection<T>;
33-
34-
/**
35-
* Two-dimensional array.
36-
*/
37-
type Array2D<T> = Array<Array1D<T>>;
38-
39-
/**
40-
* Three-dimensional array.
41-
*/
42-
type Array3D<T> = Array<Array2D<T>>;
43-
44-
/**
45-
* Four-dimensional array.
46-
*/
47-
type Array4D<T> = Array<Array3D<T>>;
48-
49-
/**
50-
* Five-dimensional array.
51-
*/
52-
type Array5D<T> = Array<Array4D<T>>;
53-
54-
/**
55-
* Six-dimensional array.
56-
*/
57-
type Array6D<T> = Array<Array5D<T>>;
58-
59-
/**
60-
* Seven-dimensional array.
61-
*/
62-
type Array7D<T> = Array<Array6D<T>>;
63-
64-
/**
65-
* Eight-dimensional array.
66-
*/
67-
type Array8D<T> = Array<Array7D<T>>;
68-
69-
/**
70-
* Nine-dimensional array.
71-
*/
72-
type Array9D<T> = Array<Array8D<T>>;
73-
74-
/**
75-
* Ten-dimensional array.
76-
*/
77-
type Array10D<T> = Array<Array9D<T>>; // WARNING: arbitrarily limited to 10 dimensions, which should be fine for most practical purposes
25+
import { Collection, Array1D, Array2D, Array3D, Array4D, Array5D, Array6D, Array7D, Array8D, Array9D, Array10D } from '@stdlib/types/array';
7826

7927
/**
8028
* One-dimensional array shape.

0 commit comments

Comments
 (0)