Skip to content

Commit be7f289

Browse files
committed
Auto-generated commit
1 parent 1a6caac commit be7f289

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/.keepalive

-1
This file was deleted.

docs/types/test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import array = require( './index' );
2929
array( { 'buffer': [ [ 1, 2 ], [ 3, 4 ] ] } ); // $ExpectType ndarray
3030
}
3131

32-
// The function does not compile if provided a first argument which is not an array, buffer, or options object...
32+
// The compiler throws an error if the function is provided a first argument which is not an array, buffer, or options object...
3333
{
3434
array( true ); // $ExpectError
3535
array( false ); // $ExpectError
@@ -38,7 +38,7 @@ import array = require( './index' );
3838
array( null ); // $ExpectError
3939
}
4040

41-
// The function does not compile if provided a second argument which is not an options object...
41+
// The compiler throws an error if the function is provided a second argument which is not an options object...
4242
{
4343
const buffer = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
4444
array( buffer, 'abc' ); // $ExpectError
@@ -249,7 +249,7 @@ import array = require( './index' );
249249
array( { 'readonly': ( x: number ): number => x } ); // $ExpectError
250250
}
251251

252-
// The function does not compile if provided an invalid number of arguments...
252+
// The compiler throws an error if the function is provided an invalid number of arguments...
253253
{
254254
const buffer = new Float64Array( [ 1.0, 2.0, 3.0, 4.0 ] );
255255
array(); // $ExpectError

lib/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363

6464
// MODULES //
6565

66-
var array = require( './main.js' );
66+
var main = require( './main.js' );
6767

6868

6969
// EXPORTS //
7070

71-
module.exports = array;
71+
module.exports = main;

0 commit comments

Comments
 (0)