improvement - `EffectResponse` body as any type
MODIFY
example/controllers/api.controller.ts
example/controllers/api.controller.ts
@@ -7,7 +7,7 @@ const root$: Effect = request$ => request$
matchPath('/'),
matchType('GET'),
map(req => ({
- body: { data: `API root @ ${req.url}` },
+ body: `API root @ ${req.url}`,
}))
);

MODIFY
src/effects/effects.interface.ts
src/effects/effects.interface.ts
@@ -3,7 +3,7 @@ import { HttpRequest, HttpResponse, HttpStatus } from '../http.interface';
export interface EffectResponse {
status?: HttpStatus;
- body?: object;
+ body?: any;
headers?: Record<string, string>;
}

improvement - `EffectResponse` body as any type