HttpApiEndpoint.get("getSubStore", "/sub-store").addSuccess(
Schema.Uint8ArrayFromSelf.pipe(
HttpApiSchema.withEncoding({
kind: "Uint8Array",
contentType: "application/octet-stream",
}),
),
),
/// on server
return HttpServerResponse.stream(stream);
/// derived client
const s = yield* apiClient.test.getSubStore(); // want: Stream<Uint8Array>, get: Uint8Array
HttpApiEndpoint.get("getSubStore", "/sub-store").addSuccess(
Schema.Uint8ArrayFromSelf.pipe(
HttpApiSchema.withEncoding({
kind: "Uint8Array",
contentType: "application/octet-stream",
}),
),
),
/// on server
return HttpServerResponse.stream(stream);
/// derived client
const s = yield* apiClient.test.getSubStore(); // want: Stream<Uint8Array>, get: Uint8Array