We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a1e106 commit 698241dCopy full SHA for 698241d
extend-redux.d.ts
@@ -1,4 +1,4 @@
1
-import { ThunkAction } from './src/index'
+import type { ThunkAction } from './src/index'
2
3
/**
4
* Globally alter the Redux `bindActionCreators` and `Dispatch` types to assume
typescript_test/typescript.ts
@@ -144,9 +144,7 @@ actions.standardAction().other
144
145
const untypedStore = createStore(fakeReducer, applyMiddleware(thunk))
146
147
-// @ts-expect-error
148
untypedStore.dispatch(anotherThunkAction())
149
150
untypedStore.dispatch(promiseThunkAction()).then(() => Promise.resolve())
151
152
// #248: Need a union overload to handle generic dispatched types
0 commit comments