Skip to content

Commit befeb63

Browse files
committed
Auto-generated commit
1 parent 3b1e944 commit befeb63

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/types/test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import isContiguous = require( './index' );
2626
isContiguous( [ 10, 10 ], [ 10, 1 ], 10 ); // $ExpectType boolean
2727
}
2828

29-
// The function does not compile if provided a first argument which is not an array-like object containing numbers...
29+
// The compiler throws an error if the function is provided a first argument which is not an array-like object containing numbers...
3030
{
3131
const strides = [ 10, 1 ];
3232
const offset = 10;
@@ -40,7 +40,7 @@ import isContiguous = require( './index' );
4040
isContiguous( ( x: number ): number => x, strides, offset ); // $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 shape = [ 10, 10 ];
4646
const offset = 10;
@@ -54,7 +54,7 @@ import isContiguous = require( './index' );
5454
isContiguous( shape, ( x: number ): number => x, offset ); // $ExpectError
5555
}
5656

57-
// The function does not compile if provided a third argument which is not a number...
57+
// The compiler throws an error if the function is provided a third argument which is not a number...
5858
{
5959
const shape = [ 10, 10 ];
6060
const strides = [ 10, 1 ];
@@ -68,7 +68,7 @@ import isContiguous = require( './index' );
6868
isContiguous( shape, strides, ( x: number ): number => x ); // $ExpectError
6969
}
7070

71-
// The function does not compile if provided insufficient arguments...
71+
// The compiler throws an error if the function is provided insufficient arguments...
7272
{
7373
isContiguous(); // $ExpectError
7474
isContiguous( [ 10, 10 ] ); // $ExpectError

examples/types/test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import maxViewBufferIndex = require( '@stdlib/ndarray-base-assert-is-contiguous-
2626
maxViewBufferIndex( [ 10, 10 ], [ 10, 1 ], 10 ); // $ExpectType number
2727
}
2828

29-
// The function does not compile if provided a first argument which is not an array-like object containing numbers...
29+
// The compiler throws an error if the function is provided a first argument which is not an array-like object containing numbers...
3030
{
3131
const strides = [ 10, 1 ];
3232
const offset = 10;
@@ -40,7 +40,7 @@ import maxViewBufferIndex = require( '@stdlib/ndarray-base-assert-is-contiguous-
4040
maxViewBufferIndex( ( x: number ): number => x, strides, offset ); // $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 shape = [ 10, 10 ];
4646
const offset = 10;
@@ -54,7 +54,7 @@ import maxViewBufferIndex = require( '@stdlib/ndarray-base-assert-is-contiguous-
5454
maxViewBufferIndex( shape, ( x: number ): number => x, offset ); // $ExpectError
5555
}
5656

57-
// The function does not compile if provided a third argument which is not a number...
57+
// The compiler throws an error if the function is provided a third argument which is not a number...
5858
{
5959
const shape = [ 10, 10 ];
6060
const strides = [ 10, 1 ];
@@ -68,7 +68,7 @@ import maxViewBufferIndex = require( '@stdlib/ndarray-base-assert-is-contiguous-
6868
maxViewBufferIndex( shape, strides, ( x: number ): number => x ); // $ExpectError
6969
}
7070

71-
// The function does not compile if provided insufficient arguments...
71+
// The compiler throws an error if the function is provided insufficient arguments...
7272
{
7373
maxViewBufferIndex(); // $ExpectError
7474
maxViewBufferIndex( [ 10, 10 ] ); // $ExpectError

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656

5757
// MODULES //
5858

59-
var isContiguous = require( './main.js' );
59+
var main = require( './main.js' );
6060

6161

6262
// EXPORTS //
6363

64-
module.exports = isContiguous;
64+
module.exports = main;

0 commit comments

Comments
 (0)