Type Error in TypeScript: Mismatch Between Expected and Actual Effect Types in API Handler

gah i'm sorry for more questions. This one should be more simple though, i'm not following the types.

Type 'Effect<{ success: boolean; }, never, never>' is not assignable to type 'Effect<never, never, never>'.
  Type '{ success: boolean; }' is not assignable to type 'never'.ts(2322)


So my handler is like so
const healthCheckHandler = RouterBuilder.handle("HealthCheck", () => Effect.succeed({ success: true })); 


and my api is like so:

const HealthCheckSuccess = Schema.Struct({ success: Schema.Boolean });

const healthCheckGet = pipe(
        Api.get("HealthCheck", "/healthcheck"),
        Api.setResponseBody(HealthCheckSuccess),
);


export { healthCheckGet };


This feels pretty dead simple, i just can't follow why its an Effect<never,never,never>.
Was this page helpful?