InvokeAI/invokeai/frontend/web/src/services
psychedelicious ca07449fb4 fix(ui): add typeguard for action.payload
In the latest redux, unknown actions are typed as `unknown`. This forces type-safety upon us, requiring us to be more careful about the shape of actions.

In this case, we don't know if the rejection has a payload or what shape it may be in, so we need to do runtime checks. This is implemented with a simple zod schema, but probably the right way to handle this is to have consistent types in our RTK-Query error logic.
2023-12-09 16:09:26 +11:00
..
api fix(ui): add typeguard for action.payload 2023-12-09 16:09:26 +11:00
events chore(ui): lint 2023-11-29 11:06:07 +11:00