mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
ca07449fb4
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. |
||
---|---|---|
.. | ||
.storybook | ||
config | ||
dist | ||
docs | ||
public/locales | ||
scripts | ||
src | ||
static/docs | ||
tests | ||
__init__.py | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.prettierignore | ||
.prettierrc.js | ||
favicon.ico | ||
index.html | ||
package.json | ||
pnpm-lock.yaml | ||
tsconfig.json | ||
tsconfig.node.json | ||
vite.config.ts |