@effect/data
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -210,4 +210,4 @@ /** | ||
export declare const unsafeGet: { | ||
<S, I>(tag: Tag<S, I>): <Services>(self: Context<Services>) => S; | ||
<Services, S, I>(self: Context<Services>, tag: Tag<S, I>): S; | ||
<S, I>(tag: Tag<I, S>): <Services>(self: Context<Services>) => S; | ||
<Services, S, I>(self: Context<Services>, tag: Tag<I, S>): S; | ||
}; | ||
@@ -237,4 +237,4 @@ /** | ||
export declare const getOption: { | ||
<S, I>(tag: Tag<S, I>): <Services>(self: Context<Services>) => Option<S>; | ||
<Services, S, I>(self: Context<Services>, tag: Tag<S, I>): Option<S>; | ||
<S, I>(tag: Tag<I, S>): <Services>(self: Context<Services>) => Option<S>; | ||
<Services, S, I>(self: Context<Services>, tag: Tag<I, S>): Option<S>; | ||
}; | ||
@@ -296,5 +296,5 @@ /** | ||
export declare const pick: <Services, S extends Array<ValidTagsById<Services>>>(...tags: S) => (self: Context<Services>) => Context<{ | ||
[k in keyof S]: Tag.Service<S[k]>; | ||
[k in keyof S]: Tag.Identifier<S[k]>; | ||
}[number]>; | ||
export {}; | ||
//# sourceMappingURL=Context.d.ts.map |
{ | ||
"name": "@effect/data", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -241,4 +241,4 @@ /** | ||
export const unsafeGet: { | ||
<S, I>(tag: Tag<S, I>): <Services>(self: Context<Services>) => S | ||
<Services, S, I>(self: Context<Services>, tag: Tag<S, I>): S | ||
<S, I>(tag: Tag<I, S>): <Services>(self: Context<Services>) => S | ||
<Services, S, I>(self: Context<Services>, tag: Tag<I, S>): S | ||
} = C.unsafeGet | ||
@@ -269,4 +269,4 @@ | ||
export const getOption: { | ||
<S, I>(tag: Tag<S, I>): <Services>(self: Context<Services>) => Option<S> | ||
<Services, S, I>(self: Context<Services>, tag: Tag<S, I>): Option<S> | ||
<S, I>(tag: Tag<I, S>): <Services>(self: Context<Services>) => Option<S> | ||
<Services, S, I>(self: Context<Services>, tag: Tag<I, S>): Option<S> | ||
} = C.getOption | ||
@@ -331,2 +331,2 @@ | ||
...tags: S | ||
) => (self: Context<Services>) => Context<{ [k in keyof S]: Tag.Service<S[k]> }[number]> = C.pick | ||
) => (self: Context<Services>) => Context<{ [k in keyof S]: Tag.Identifier<S[k]> }[number]> = C.pick |
@@ -132,4 +132,4 @@ import type * as C from "@effect/data/Context" | ||
export const unsafeGet = Dual.dual< | ||
<S, I>(tag: C.Tag<S, I>) => <Services>(self: C.Context<Services>) => S, | ||
<Services, S, I>(self: C.Context<Services>, tag: C.Tag<S, I>) => S | ||
<S, I>(tag: C.Tag<I, S>) => <Services>(self: C.Context<Services>) => S, | ||
<Services, S, I>(self: C.Context<Services>, tag: C.Tag<I, S>) => S | ||
>(2, (self, tag) => { | ||
@@ -144,4 +144,4 @@ if (!self.unsafeMap.has(tag)) { | ||
export const getOption = Dual.dual< | ||
<S, I>(tag: C.Tag<S, I>) => <Services>(self: C.Context<Services>) => O.Option<S>, | ||
<Services, S, I>(self: C.Context<Services>, tag: C.Tag<S, I>) => O.Option<S> | ||
<S, I>(tag: C.Tag<I, S>) => <Services>(self: C.Context<Services>) => O.Option<S>, | ||
<Services, S, I>(self: C.Context<Services>, tag: C.Tag<I, S>) => O.Option<S> | ||
>(2, (self, tag) => { | ||
@@ -169,3 +169,3 @@ if (!self.unsafeMap.has(tag)) { | ||
(self: C.Context<Services>): C.Context< | ||
{ [k in keyof S]: C.Tag.Service<S[k]> }[number] | ||
{ [k in keyof S]: C.Tag.Identifier<S[k]> }[number] | ||
> => { | ||
@@ -179,3 +179,3 @@ const tagSet = new Set<unknown>(tags) | ||
} | ||
return new ContextImpl<{ [k in keyof S]: C.Tag.Service<S[k]> }[number]>(newEnv) | ||
return new ContextImpl<{ [k in keyof S]: C.Tag.Identifier<S[k]> }[number]>(newEnv) | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
3503256