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

@@ -127,7 +127,13 @@ const restCollectionDispatchers = defineDispatchers({
editFolder(
{ state }: RESTCollectionStoreType,
{ path, folder }: { path: string; folder: string }
{
path,
folder,
}: {
path: string
folder: HoppCollection<HoppRESTRequest>
}
) {
const newState = state
@@ -393,7 +399,7 @@ const gqlCollectionDispatchers = defineDispatchers({
editFolder(
{ state }: GraphqlCollectionStoreType,
{ path, folder }: { path: string; folder: string }
{ path, folder }: { path: string; folder: HoppCollection<HoppGQLRequest> }
) {
const newState = state