@supercharge/collections
Advanced tools
Comparing version 3.1.3 to 3.1.4
# Changelog | ||
## [3.1.3](https://github.com/supercharge/collections/compare/v3.1.3...v3.1.4) - 2021-02-05 | ||
### Fixed | ||
- fixed types for `first` and `shift` | ||
## [3.1.3](https://github.com/supercharge/collections/compare/v3.1.2...v3.1.3) - 2021-01-28 | ||
@@ -4,0 +10,0 @@ |
@@ -133,3 +133,3 @@ import { PendingAsyncCollection } from './pending-async-collection'; | ||
*/ | ||
find(predicate: (value: T, index: number, items: T[]) => T): T; | ||
find(predicate: (value: T, index: number, items: T[]) => T): T | undefined; | ||
find(predicate: (value: T, index: number, items: T[]) => Promise<T>): Promise<T>; | ||
@@ -144,3 +144,4 @@ /** | ||
*/ | ||
first(predicate?: (value: T, index: number, items: T[]) => T): T; | ||
first(): T | undefined; | ||
first(predicate?: (value: T, index: number, items: T[]) => T): T | undefined; | ||
first(predicate?: (value: T, index: number, items: T[]) => Promise<T>): PendingAsyncCollection<T>; | ||
@@ -363,3 +364,3 @@ /** | ||
*/ | ||
shift(): T; | ||
shift(): T | undefined; | ||
/** | ||
@@ -366,0 +367,0 @@ * Returns the number of items in the collection. |
{ | ||
"name": "@supercharge/collections", | ||
"description": "Supercharge collections", | ||
"version": "3.1.3", | ||
"version": "3.1.4", | ||
"author": "Marcus Pรถhls <marcus@superchargejs.com>", | ||
@@ -6,0 +6,0 @@ "bugs": { |
172140
5351