tb-simulator/src/main.ts:9:23 - error TS2345: Argument of type 'Tag<FileSystem, FileSystem>' is not assignable to parameter of type 'Effect<unknown, unknown, unknown>'.
Type 'Tag<FileSystem, FileSystem>' is missing the following properties from type 'Effect<unknown, unknown, unknown>': [EffectTypeId], [SinkTypeId], [StreamTypeId], [ChannelTypeId]
7 |
8 | const foo = Effect.gen(function* ($) {
> 9 | const fs = yield* $(FileSystem.FileSystem)
| ^
10 | return fs.readFile("bla")
11 | })
12 |
tb-simulator/src/main.ts:9:23 - error TS2345: Argument of type 'Tag<FileSystem, FileSystem>' is not assignable to parameter of type 'Effect<unknown, unknown, unknown>'.
Type 'Tag<FileSystem, FileSystem>' is missing the following properties from type 'Effect<unknown, unknown, unknown>': [EffectTypeId], [SinkTypeId], [StreamTypeId], [ChannelTypeId]
7 |
8 | const foo = Effect.gen(function* ($) {
> 9 | const fs = yield* $(FileSystem.FileSystem)
| ^
10 | return fs.readFile("bla")
11 | })
12 |