refactor: improve type checking for DispatchingStore dispatch payloads

This commit is contained in:
Andrew Bastin
2023-02-14 14:09:32 +05:30
parent cb5fff0310
commit b27fe871c4
11 changed files with 85 additions and 57 deletions

View File

@@ -141,7 +141,8 @@ const RESTHistoryDispatchers = defineDispatchers({
state: currentVal.state.filter((e) => !isEqual(e, entry)),
}
},
clearHistory() {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
clearHistory(_, {}) {
return {
state: [],
}
@@ -189,7 +190,8 @@ const GQLHistoryDispatchers = defineDispatchers({
state: currentVal.state.filter((e) => !isEqual(e, entry)),
}
},
clearHistory() {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
clearHistory(_, {}) {
return {
state: [],
}