Comparing version 0.5.1 to 0.6.1
import { type MaybePromise } from "./iterate.js"; | ||
export declare function filter<T, S extends T>(arr: MaybePromise<T>[], predicate: (t: T) => t is S): Promise<Array<S>>; | ||
export declare function filter<T>(arr: MaybePromise<T>[], predicate: (t: T) => boolean): Promise<Array<T>>; |
import { type MaybePromise } from "./iterate.js"; | ||
export declare function find<T, S extends T>(arr: MaybePromise<T>[], predicate: (t: T) => t is S): Promise<S | undefined>; | ||
export declare function find<T>(arr: MaybePromise<T>[], predicate: (t: T) => boolean): Promise<T | undefined>; |
{ | ||
"name": "emmi", | ||
"version": "0.5.1", | ||
"version": "0.6.1", | ||
"type": "module", | ||
@@ -26,2 +26,3 @@ "main": "./dist/index.cjs", | ||
"test": "vitest", | ||
"preversion": "bun test && npm run build", | ||
"prepublishOnly": "vitest run && npm run build" | ||
@@ -28,0 +29,0 @@ }, |
9760
291