Hi Is it possible to us…

less than 1 minute read

Hi. Is it possible to use non-class-based actions (boilerplate, glad they are gone) with Nx Data Persistence? I could not find anything in the docs. This here is what I tried so far:

run: (action, state) =&gt; { const booking: Booking = action.booking; return <http://this.httpClient.post|this.httpClient.post>&lt;FirebasePostResponse&gt;('<https://foo/bar.json>', booking).pipe( map((res, err) =&gt; { return bookingsAddOne({booking}); }) ); }, which is giving me a type mismatch error

Updated: