import * as Command from "@effect/platform/Command";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
class MyService extends Context.Tag(
"@codecrafters/redis/app/command/index/MyService",
)<MyService, { doThing: () => Effect.Effect<unknown, unknown> }>() { }
const MyServiceLive = Layer.succeed(
MyService,
{
doThing() {
return Command.exitCode(Command.make('')); // Type 'CommandExecutor' is not assignable to type 'never'.
},
},
);
import * as Command from "@effect/platform/Command";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
class MyService extends Context.Tag(
"@codecrafters/redis/app/command/index/MyService",
)<MyService, { doThing: () => Effect.Effect<unknown, unknown> }>() { }
const MyServiceLive = Layer.succeed(
MyService,
{
doThing() {
return Command.exitCode(Command.make('')); // Type 'CommandExecutor' is not assignable to type 'never'.
},
},
);