Type-level error when using a child `HttpApi` with `addHttpApi` despite runtime success
Using a child
repro here, I had to add a
https://effect.website/play#daa4dd2b618a
the only change is this:
the point is to properly split up a large API into smaller child APIs, as it was intended I think with
HttpApi "AnotherApi" (added to the root MyApi HttpApi with addHttpApi) throws a type-level error but works fine at runtime when referencing that AnotherApi in the implementation Layerrepro here, I had to add a
@ts-expect-error so that TS ignores it and successfully compiles/runs the program:https://effect.website/play#daa4dd2b618a
the only change is this:
the point is to properly split up a large API into smaller child APIs, as it was intended I think with
addHttApi