ngneat/query

Export MutationResult and CreateMutationOptions

Shaddix opened this issue · 0 comments

Which @ngneat/query-* package(s) are relevant/releated to the feature request?

query

Description

Currently MutationResult and CreateMutationOptions are not exported from a library.

I'd like to use these types in autogenerated API clients (as part of react-query-swagger).

Their query-counterparts (UndefinedInitialDataOptions/DefinedInitialDataOptions and Result) are already exported, so it seems logical to me to export MutationResult/CreateMutationOptions as well.

Proposed solution

Export them :)

Alternatives considered

I could get these types as ReturnType of injectMutation(), but doing it via import seems much easier.

Do you want to create a pull request?

No