Skip to content

Commit c176092

Browse files
committed
Auto-generated commit
1 parent 58b978b commit c176092

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Copyright (c) 2016-2021 The Stdlib Authors.
1+
Copyright (c) 2016-2022 The Stdlib Authors.

docs/types/index.d.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,33 @@
1818

1919
// TypeScript Version: 2.0
2020

21+
import Complex128Array = require( '@stdlib/array-complex128' );
22+
import Complex64Array = require( '@stdlib/array-complex64' );
23+
24+
/**
25+
* Returns a `Complex128Array` constructor.
26+
*
27+
* @param dtype - data type
28+
* @returns constructor
29+
*
30+
* @example
31+
* var ctor = ctors( 'complex128' );
32+
* // returns <Function>
33+
*/
34+
declare function ctors( dtype: 'complex128' ): typeof Complex128Array;
35+
36+
/**
37+
* Returns a `Complex64Array` constructor.
38+
*
39+
* @param dtype - data type
40+
* @returns constructor
41+
*
42+
* @example
43+
* var ctor = ctors( 'complex64' );
44+
* // returns <Function>
45+
*/
46+
declare function ctors( dtype: 'complex64' ): typeof Complex64Array;
47+
2148
/**
2249
* Returns a complex typed array constructor.
2350
*

docs/types/test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@
1818

1919
import ctors = require( './index' );
2020

21+
2122
// TESTS //
2223

2324
// The function returns a function or null..
2425
{
25-
ctors( 'complex128' ); // $ExpectType Function | null
26+
ctors( 'complex128' ); // $ExpectType Complex128ArrayConstructor
27+
ctors( 'complex64' ); // $ExpectType Complex64ArrayConstructor
2628
ctors( 'float' ); // $ExpectType Function | null
2729
}
2830

0 commit comments

Comments
 (0)