Comparing version 12.0.1 to 12.0.2
@@ -134,6 +134,8 @@ /// <reference lib="es2015.generator" /> | ||
/** Map over the resolution value of the given Future or ConcurrentFuture. See https://github.com/fluture-js/Fluture#map */ | ||
export function map<RA, RB>(mapper: (value: RA) => RB): { | ||
<L>(source: FutureInstance<L, RA>): FutureInstance<L, RB> | ||
<L>(source: ConcurrentFutureInstance<L, RA>): ConcurrentFutureInstance<L, RB> | ||
} | ||
export function map<RA, RB>(mapper: (value: RA) => RB): <T extends FutureInstance<any, RA> | ConcurrentFutureInstance<any, RA>>(source: T) => | ||
T extends FutureInstance<infer L, RA> ? | ||
FutureInstance<L, RB> : | ||
T extends ConcurrentFutureInstance<infer L, RA> ? | ||
ConcurrentFutureInstance<L, RB> : | ||
never; | ||
@@ -140,0 +142,0 @@ /** Map over the rejection reason of the given Future. See https://github.com/fluture-js/Fluture#maprej */ |
{ | ||
"name": "fluture", | ||
"version": "12.0.1", | ||
"version": "12.0.2", | ||
"description": "FantasyLand compliant (monadic) alternative to Promises", | ||
@@ -5,0 +5,0 @@ "main": "index.cjs", |
@@ -94,3 +94,3 @@ # [![Fluture](logo.png)](#butterfly) | ||
Fluture is hosted in full with all of its dependencies at | ||
https://cdn.jsdelivr.net/gh/fluture-js/Fluture@12.0.1/dist/bundle.js | ||
https://cdn.jsdelivr.net/gh/fluture-js/Fluture@12.0.2/dist/bundle.js | ||
@@ -97,0 +97,0 @@ This script will add `Fluture` to the global scope. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
178271
3419