fp-ts-bootstrap
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -5,3 +5,3 @@ import * as R from 'fp-ts/Reader'; | ||
export type ResourceOf<S extends Service<any, any, any>> = (S extends Service<any, any, infer R> ? R : never); | ||
export declare const of: <A, R, FE>(a: A) => R.Reader<R, B.Bracket<FE, A>>; | ||
export declare const of: <S, D = unknown, E = never>(x: S) => Service<E, D, S>; | ||
export declare const map: <A, B>(f: (a: A) => B) => <R, FE>(fa: R.Reader<R, B.Bracket<FE, A>>) => R.Reader<R, B.Bracket<FE, B>>; | ||
@@ -11,2 +11,2 @@ export declare const ap: <R, FE, A>(fa: R.Reader<R, B.Bracket<FE, A>>) => <B>(fab: R.Reader<R, B.Bracket<FE, (a: A) => B>>) => R.Reader<R, B.Bracket<FE, B>>; | ||
export declare const chain: <A, R, FE, B>(f: (a: A) => R.Reader<R, B.Bracket<FE, B>>) => (ma: R.Reader<R, B.Bracket<FE, A>>) => R.Reader<R, B.Bracket<FE, B>>; | ||
export declare const fromReader: <R, A, FE>(ma: R.Reader<R, A>) => R.Reader<R, B.Bracket<FE, A>>; | ||
export declare const fromReader: <D, S, E = never>(reader: R.Reader<D, S>) => Service<E, D, S>; |
@@ -6,3 +6,3 @@ "use strict"; | ||
var B = require("./Bracket"); | ||
exports.of = RT.of(B.Pointed); | ||
exports.of = (RT.of(B.Pointed)); | ||
exports.map = RT.map(B.Functor); | ||
@@ -12,2 +12,2 @@ exports.ap = RT.ap(B.Apply); | ||
exports.chain = RT.chain(B.Chain); | ||
exports.fromReader = RT.fromReader(B.Pointed); | ||
exports.fromReader = (RT.fromReader(B.Pointed)); |
{ | ||
"name": "fp-ts-bootstrap", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Application bootstrapping utilities for fp-ts", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
21147