Skip to content

Commit 38fb9e2

Browse files
committed
Update declarations to use top-level interfaces
1 parent 83243e8 commit 38fb9e2

File tree

1 file changed

+3
-25
lines changed
  • lib/node_modules/@stdlib/array/complex64/docs/types

1 file changed

+3
-25
lines changed

lib/node_modules/@stdlib/array/complex64/docs/types/index.d.ts

+3-25
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,17 @@
2121
/// <reference types="@stdlib/types"/>
2222

2323
import { Iterator as Iter, IterableIterator } from '@stdlib/types/iter';
24-
import { ArrayLike, TypedArray } from '@stdlib/types/array';
25-
import { ComplexLike } from '@stdlib/types/object';
24+
import { ArrayLike, TypedArray, Complex64Array as Complex64ArrayInterface } from '@stdlib/types/array';
25+
import { ComplexLike, Complex64 } from '@stdlib/types/object';
2626
import ArrayBuffer = require( '@stdlib/array/buffer' );
27-
import Complex64 = require( '@stdlib/complex/float32' );
2827

2928
// Define a union type representing both iterable and non-iterable iterators:
3029
type Iterator = Iter | IterableIterator;
3130

3231
/**
3332
* Class for creating a 64-bit complex number array.
3433
*/
35-
declare class Complex64Array {
34+
declare class Complex64Array implements Complex64ArrayInterface {
3635
/**
3736
* 64-bit complex number array constructor.
3837
*
@@ -234,27 +233,6 @@ declare class Complex64Array {
234233
*/
235234
get( i: number ): Complex64 | void;
236235

237-
/**
238-
* Returns an array element.
239-
*
240-
* @param out - output array
241-
* @param i - element index
242-
* @throws index argument must be a nonnegative integer
243-
* @returns array element
244-
*
245-
* @example
246-
* var arr = new Complex64Array( 10 );
247-
*
248-
* var z = arr.get( 0 );
249-
* // returns <Complex64>
250-
*
251-
* arr.set( [ 1.0, -1.0 ], 0 );
252-
*
253-
* z = arr.get( [ 0.0, 0.0 ], 0 );
254-
* // returns [ 1.0, -1.0 ]
255-
*/
256-
get( out: ArrayLike<number>, i: number ): ArrayLike<number> | void;
257-
258236
/**
259237
* Sets an array element.
260238
*

0 commit comments

Comments
 (0)