Skip to content

Commit ec42151

Browse files
committed
Found another issue with the map function.
1 parent ee356e5 commit ec42151

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/collectionsjs/collectionsjs-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ collection.has({ name: 'Bran Stark', age: 7 }); // $ExpectType boolean
3838
collection.join(); // $ExpectType string
3939
collection.keys(); // $ExpectType Collection<{ name: string; age: number; }>
4040
collection.last(); // $ExpectType { name: string; age: number; }
41-
collection.map(stark => stark.name); // $ExpectType Collection<{ name: string; age: number; }>
41+
collection.map(stark => stark.name); // $ExpectType Collection<string>
4242
collection.pluck('name'); // $ExpectType Collection<{ name: string; age: number; }>
4343
collection.push({name: 'Robb Stark', age: 17}); // $ExpectType Collection<{ name: string; age: number; }>
4444
const value = new Collection([1, 2, 3]).reduce((previous, current) => previous + current, 0); // $ExpectType number

0 commit comments

Comments
 (0)