@supercharge/collections
Advanced tools
Comparing version 3.1.0 to 3.1.1
# Changelog | ||
## [3.1.1](https://github.com/supercharge/collections/compare/v3.1.0...v3.1.1) - 2021-01-03 | ||
### Fixed | ||
- fixed types: make `predicate` parameter optional for `Collection#first` | ||
## [3.1.0](https://github.com/supercharge/collections/compare/v3.0.0...v3.1.0) - 2020-12-02 | ||
@@ -4,0 +10,0 @@ |
@@ -115,3 +115,3 @@ export declare class Collection { | ||
*/ | ||
first(callback: Function): Promise<any>; | ||
first(callback?: Function): Promise<any>; | ||
/** | ||
@@ -118,0 +118,0 @@ * Asynchronous version of Array#flatMap(). It invokes the `callback` |
@@ -149,3 +149,3 @@ interface QueueItem { | ||
*/ | ||
first<S extends T>(predicate: (value: T, index: number, items: T[]) => value is S): Promise<any>; | ||
first<S extends T>(predicate?: (value: T, index: number, items: T[]) => value is S): Promise<any>; | ||
/** | ||
@@ -152,0 +152,0 @@ * Flattens the collection one level deep. |
{ | ||
"name": "@supercharge/collections", | ||
"description": "Supercharge collections", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"author": "Marcus Pöhls <marcus@superchargejs.com>", | ||
@@ -6,0 +6,0 @@ "bugs": { |
171619