Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit be7f289

Browse filesBrowse files
committed
Auto-generated commit
1 parent 1a6caac commit be7f289
Copy full SHA for be7f289

File tree

3 files changed

+5
-6
lines changed
Filter options

3 files changed

+5
-6
lines changed

‎.github/.keepalive

Copy file name to clipboardExpand all lines: .github/.keepalive
-1Lines changed: 0 additions & 1 deletion
This file was deleted.

‎docs/types/test.ts

Copy file name to clipboardExpand all lines: docs/types/test.ts
+3-3Lines changed: 3 additions & 3 deletions
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

Copy file name to clipboardExpand all lines: lib/index.js
+2-2Lines changed: 2 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.