8000 Auto-generated commit · stdlib-js/ndarray-base-to-array@3286772 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3286772

Browse files
committed
Auto-generated commit
1 parent ee4614d commit 3286772

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/.keepalive

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-09-01T01:42:57.529Z
1+
2022-10-01T02:10:29.214Z

docs/types/test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import ndarray2array = require( './index' );
2727
ndarray2array( [ 1, 2, 3, 4 ], [ 2, 2 ], [ 2, 1 ], 0, 'column-major' ); // $ExpectType any[]
2828
}
2929

30-
// The function does not compile if provided a first argument which is not an array-like object or buffer...
30+
// The compiler throws an error if the function is provided a first argument which is not an array-like object or buffer...
3131
{
3232
const shape = [ 2, 2 ];
3333
const strides = [ 2, 1 ];
@@ -40,7 +40,7 @@ import ndarray2array = require( './index' );
4040
ndarray2array( undefined, shape, strides, offset, order ); // $ExpectError
4141
}
4242

43-
// The function does not compile if provided a second argument which is not an array-like object containing numbers...
43+
// The compiler throws an error if the function is provided a second argument which is not an array-like object containing numbers...
4444
{
4545
const buffer = [ 1, 2, 3, 4 ];
4646
const strides = [ 2, 1 ];
@@ -56,7 +56,7 @@ import ndarray2array = require( './index' );
5656
ndarray2array( buffer, ( x: number ): number => x, strides, offset, order ); // $ExpectError
5757
}
5858

59-
// The function does not compile if provided a third argument which is not an array-like object containing numbers...
59+
// The compiler throws an error if the function is provided a third argument which is not an array-like object containing numbers...
6060
{
6161
const buffer = [ 1, 2, 3, 4 ];
6262
const shape = [ 2, 2 ];
@@ -72,7 +72,7 @@ import ndarray2array = require( './index' );
7272
ndarray2array( buffer, shape, ( x: number ): number => x, offset, order ); // $ExpectError
7373
}
7474

75-
// The function does not compile if provided a fourth argument which is not a number...
75+
// The compiler throws an error if the function is provided a fourth argument which is not a number...
7676
{
7777
const buffer = [ 1, 2, 3, 4 ];
7878
const shape = [ 2, 2 ];
@@ -88,7 +88,7 @@ import ndarray2array = require( './index' );
8888
ndarray2array( buffer, shape, strides, ( x: number ): number => x, order ); // $ExpectError
8989
}
9090

91-
// The function does not compile if provided a fifth argument which is not a known array order...
91+
// The compiler throws an error if the function is provided a fifth argument which is not a known array order...
9292
{
9393
const buffer = [ 1, 2, 3, 4 ];
9494
const shape = [ 2, 2 ];
@@ -104,7 +104,7 @@ import ndarray2array = require( './index' );
104104
ndarray2array( buffer, shape, strides, offset, ( x: number ): number => x ); // $ExpectError
105105
}
106106

107-
// The function does not compile if provided insufficient arguments...
107+
// The compiler throws an error if the function is provided insufficient arguments...
108108
{
109109
const buffer = [ 1, 2, 3, 4 ];
110110
const shape = [ 2, 2 ];

0 commit comments

Comments
 (0)
0