import { Context, Effect } from "effect";
interface Foo {
bar: string;
}
const Foo = Context.Tag<Foo>();
/*
Argument of type 'Tag<Foo, Foo>' is not assignable to parameter of type 'Effect<unknown, unknown, unknown>'.
Type 'Tag<Foo, Foo>' is missing the following properties from type 'Effect<unknown, unknown, unknown>': [EffectTypeId], [symbol], [symbol]deno-ts(2345)
*/
Effect.map(Foo, ({ bar }) => bar)
import { Context, Effect } from "effect";
interface Foo {
bar: string;
}
const Foo = Context.Tag<Foo>();
/*
Argument of type 'Tag<Foo, Foo>' is not assignable to parameter of type 'Effect<unknown, unknown, unknown>'.
Type 'Tag<Foo, Foo>' is missing the following properties from type 'Effect<unknown, unknown, unknown>': [EffectTypeId], [symbol], [symbol]deno-ts(2345)
*/
Effect.map(Foo, ({ bar }) => bar)