Skip to content
Merged
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 6 additions & 22 deletions lib/node_modules/@stdlib/array/base/at/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,20 @@
*
* @example
* var Complex128Array = require( '@stdlib/array/complex128' );
* var real = require( '@stdlib/complex/float64/real' );
* var imag = require( '@stdlib/complex/float64/imag' );
*
* var x = new Complex128Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
*
* var v = at( x, 0 );
* // returns <Complex128>
* // returns <Complex128>[ 1.0, 2.0 ]
*
* v = at( x, 1 );
* // returns <Complex128>
* // returns <Complex128>[ 3.0, 4.0 ]
*
* v = at( x, -2 );
* // returns <Complex128>
*
* var re = real( v );
* // returns 5.0
*
* var im = imag( v );
* // returns 6.0
* // returns <Complex128>[ 5.0, 6.0 ]
*/
declare function at( x: Complex128Array, index: number ): Complex128 | void;

Check failure on line 48 in lib/node_modules/@stdlib/array/base/at/docs/types/index.d.ts

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Encountered an error while running example code: Complex64Array is not defined
/**
* Returns an element from an array.
*
Expand All @@ -63,25 +55,17 @@
*
* @example
* var Complex128Array = require( '@stdlib/array/complex64' );
* var realf = require( '@stdlib/complex/float32/real' );
* var imagf = require( '@stdlib/complex/float32/imag' );
*
* var x = new Complex64Array( [ 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0 ] );
*
* var v = at( x, 0 );
* // returns <Complex64>
* // returns <Complex64>[ 1.0, 2.0 ]
*
* v = at( x, 1 );
* // returns <Complex64>
* // returns <Complex64>[ 3.0, 4.0 ]
*
* v = at( x, -2 );
* // returns <Complex64>
*
* var re = realf( v );
* // returns 5.0
*
* var im = imagf( v );
* // returns 6.0
* // returns <Complex64>[ 5.0, 6.0 ]
*/
declare function at( x: Complex64Array, index: number ): Complex64 | void;

Expand Down
Loading