Skip to content

Commit 1f22980

Browse files
committed
Auto-generated commit
1 parent 1a6bf76 commit 1f22980

File tree

5 files changed

+57
-5
lines changed

5 files changed

+57
-5
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,40 @@
22

33
> Package changelog.
44
5+
<section class="release" id="unreleased">
6+
7+
## Unreleased (2025-05-15)
8+
9+
<section class="commits">
10+
11+
### Commits
12+
13+
<details>
14+
15+
- [`b6df817`](https://github.com/stdlib-js/stdlib/commit/b6df81722b97af36092f9c6850f33e6d4795aaa4) - **docs:** fix types _(by Athan Reines)_
16+
17+
</details>
18+
19+
</section>
20+
21+
<!-- /.commits -->
22+
23+
<section class="contributors">
24+
25+
### Contributors
26+
27+
A total of 1 person contributed to this release. Thank you to this contributor:
28+
29+
- Athan Reines
30+
31+
</section>
32+
33+
<!-- /.contributors -->
34+
35+
</section>
36+
37+
<!-- /.release -->
38+
539
<section class="release" id="v0.3.0">
640

741
## 0.3.0 (2024-07-29)

CONTRIBUTORS

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,18 @@ Dorrin Sotoudeh <[email protected]>
5151
EuniceSim142 <[email protected]>
5252
Frank Kovacs <[email protected]>
5353
GK Bishnoi <[email protected]>
54+
GURU PRASAD SHARMA <[email protected]>
5455
5556
Gautam sharma <[email protected]>
57+
Girish Garg <[email protected]>
5658
Golden Kumar <[email protected]>
5759
Gunj Joshi <[email protected]>
5860
Gururaj Gurram <[email protected]>
5961
Haroon Rasheed <[email protected]>
60-
Harsh <[email protected].com>
62+
Harsh <harshyadav6078@gmail.com>
6163
6264
Harshita Kalani <[email protected]>
65+
Hemang Choudhary <[email protected]>
6366
Hemant M Mehta <[email protected]>
6467
Hridyanshu <[email protected]>
6568
Jaimin Godhani <[email protected]>
@@ -77,15 +80,18 @@ Joris Labie <[email protected]>
7780
Justin Dennison <[email protected]>
7881
Justyn Shelby <[email protected]>
7982
Karan Anand <[email protected]>
83+
Karan Yadav <[email protected]>
8084
Karthik Prakash <[email protected]>
8185
Kaushikgtm <[email protected]>
8286
Kavyansh-Bagdi <[email protected]>
8387
Kohantika Nath <[email protected]>
8488
Krishnam Agarwal <[email protected]>
8589
Krishnendu Das <[email protected]>
8690
Kshitij-Dale <[email protected]>
91+
Lalit Narayan Yadav <[email protected]>
8792
Lovelin Dhoni J B <[email protected]>
8893
94+
Mahfuza Humayra Mohona <[email protected]>
8995
Manik Sharma <[email protected]>
9096
Manvith M <[email protected]>
9197
Marcus Fantham <[email protected]>
@@ -103,6 +109,7 @@ Naveen Kumar <[email protected]>
103109
Neeraj Pathak <[email protected]>
104110
NirvedMishra <[email protected]>
105111
Nishant Shinde <[email protected]>
112+
Nishant singh <[email protected]>
106113
Nishchay Rajput <[email protected]>
107114
Nithin Katta <[email protected]>
108115
Nourhan Hasan <[email protected]>
@@ -118,6 +125,7 @@ Prashant Kumar Yadav <[email protected]>
118125
PrathamBhamare <[email protected]>
119126
Pratik Singh <[email protected]>
120127
Pratyush Kumar Chouhan <[email protected]>
128+
Pravesh Kunwar <[email protected]>
121129
Priyansh Prajapati <[email protected]>
122130
Priyanshu Agarwal <[email protected]>
123131
Pulkit Gupta <[email protected]>
@@ -166,6 +174,7 @@ Utkarsh <http://[email protected]>
166174
Utkarsh Raj <[email protected]>
167175
UtkershBasnet <[email protected]>
168176
Vaibhav Patel <[email protected]>
177+
Vara Rahul Rajana <[email protected]>
169178
Varad Gupta <[email protected]>
170179
Vinit Pandit <[email protected]>
171180
Vivek Maurya <[email protected]>
@@ -174,12 +183,15 @@ Yaswanth Kosuru <[email protected]>
174183
Yernar Yergaziyev <[email protected]>
175184
Yugal Kaushik <[email protected]>
176185
Yuvi Mittal <[email protected]>
186+
devshree-bhati <[email protected]>
177187
178188
ekambains <[email protected]>
179189
fadiothman22 <[email protected]>
190+
iraandrushko <[email protected]>
180191
lohithganni <[email protected]>
181192
olenkabilonizhka <[email protected]>
182193
pranav-1720 <[email protected]>
183194
rahulrangers <[email protected]>
184195
185196
197+

docs/types/index.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
/// <reference types="@stdlib/types"/>
2424

25-
import { RealOrComplexTypedArray, TypedDataTypeMap } from '@stdlib/types/array';
25+
import { RealOrComplexTypedArray, TypedDataTypeMap, Collection } from '@stdlib/types/array';
26+
import { Iterator } from '@stdlib/types/iter';
2627
import ArrayBuffer = require( '@stdlib/array-buffer' );
2728

2829
/**
@@ -100,7 +101,7 @@ declare function typedarray<T extends keyof TypedDataTypeMap = 'float64'>( typed
100101
* var arr = typedarray( [ 5, -3 ], 'int32' );
101102
* // returns <Int32Array>[ 5, -3 ]
102103
*/
103-
declare function typedarray<T extends keyof TypedDataTypeMap = 'float64'>( obj: ArrayLike<number> | Iterable<any>, dtype?: T ): TypedDataTypeMap[T];
104+
declare function typedarray<T extends keyof TypedDataTypeMap = 'float64'>( obj: Collection<unknown> | Iterator, dtype?: T ): TypedDataTypeMap[T];
104105

105106
/**
106107
* Creates a typed array.

docs/types/test.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,20 @@
1616
* limitations under the License.
1717
*/
1818

19+
import array2iterator = require( '@stdlib/array-to-iterator' );
20+
import ArrayBuffer = require( '@stdlib/array-buffer' );
1921
import typedarray = require( './index' );
2022

2123

2224
// TESTS //
2325

24-
// The function returns a typed array..
26+
// The function returns a typed array...
2527
{
2628
typedarray(); // $ExpectType Float64Array
29+
typedarray( [ 1, 2, 3 ] ); // $ExpectType Float64Array
30+
typedarray( array2iterator( [ 1, 2, 3 ] ) ); // $ExpectType Float64Array
31+
typedarray( new ArrayBuffer( 10 ) ); // $ExpectType Float64Array
32+
2733
typedarray( 'float32' ); // $ExpectType Float32Array
2834
typedarray( 10, 'float32' ); // $ExpectType Float32Array
2935
typedarray( [ 1, 2, 3 ], 'int32' ); // $ExpectType Int32Array

0 commit comments

Comments
 (0)