Skip to content

Commit 058b643

Browse files
committed
Auto-generated commit
1 parent bec0a28 commit 058b643

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/.keepalive

-1
This file was deleted.

CONTRIBUTORS

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Joey Reed <[email protected]>
1616
Jordan-Gallivan <[email protected]>
1717
Joris Labie <[email protected]>
1818
Justin Dennison <[email protected]>
19+
KATTA NAGA NITHIN <[email protected]>
1920
2021
Matt Cochrane <[email protected]>
2122
Milan Raj <[email protected]>

docs/types/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
// TypeScript Version: 2.0
19+
// TypeScript Version: 4.1
2020

2121
/// <reference types="@stdlib/types"/>
2222

@@ -49,7 +49,7 @@ import { Collection } from '@stdlib/types/object';
4949
* arr = prepend( arr, [ 6.0, 7.0 ] );
5050
* // returns <Float64Array>[ 6.0, 7.0, 1.0, 2.0, 3.0, 4.0, 5.0 ]
5151
*/
52-
declare function prepend( collection1: Collection, collection2: Collection ): Collection; // tslint-disable-line max-line-length
52+
declare function prepend<T = any, U = any>( collection1: Collection<T>, collection2: Collection<U> ): Collection<T | U>;
5353

5454

5555
// EXPORTS //

docs/types/test.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ import prepend = require( './index' );
2323

2424
// The function returns a collection...
2525
{
26-
prepend( [ 0, 0 ], [ 1, 1 ] ); // $ExpectType Collection
27-
prepend( [ false, true ], [ 0, 1 ] ); // $ExpectType Collection
28-
prepend( [ 'abc', 'abc' ], [ 0, 1 ] ); // $ExpectType Collection
29-
prepend( [ true, true ], [ false, false ] ); // $ExpectType Collection
26+
prepend( [ 0, 0 ], [ 1, 1 ] ); // $ExpectType Collection<number>
27+
prepend( [ false, true ], [ 0, 1 ] ); // $ExpectType Collection<number | boolean>
28+
prepend( [ 'abc', 'abc' ], [ 0, 1 ] ); // $ExpectType Collection<string | number>
29+
prepend( [ true, true ], [ false, false ] ); // $ExpectType Collection<boolean>
3030
}
3131

3232
// The compiler throws an error if the function is provided a first argument which is not a collection...

0 commit comments

Comments
 (0)