(raw: HttpApiClient.ForApi<typeof Api>)
| 7 | |
| 8 | const Api = HttpApi.make("generated").add(Group0).add(Group1).add(Group2) |
| 9 | const adaptClient = (raw: HttpApiClient.ForApi<typeof Api>) => ({ |
| 10 | session: adaptGroup0(raw["session"]), |
| 11 | event: adaptGroup1(raw["event"]), |
| 12 | ...adaptGroup2({ status: raw["status"] }), |
| 13 | }) |
| 14 | |
| 15 | export const make = (options?: { readonly baseUrl?: URL | string }) => |
| 16 | HttpApiClient.make(Api, options).pipe(Effect.map(adaptClient)) |
nothing calls this directly
no test coverage detected