Skip to content

Commit 698241d

Browse files
fix type test error
1 parent 2a1e106 commit 698241d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

extend-redux.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ThunkAction } from './src/index'
1+
import type { ThunkAction } from './src/index'
22

33
/**
44
* Globally alter the Redux `bindActionCreators` and `Dispatch` types to assume

typescript_test/typescript.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ actions.standardAction().other
144144

145145
const untypedStore = createStore(fakeReducer, applyMiddleware(thunk))
146146

147-
// @ts-expect-error
148147
untypedStore.dispatch(anotherThunkAction())
149-
// @ts-expect-error
150148
untypedStore.dispatch(promiseThunkAction()).then(() => Promise.resolve())
151149

152150
// #248: Need a union overload to handle generic dispatched types

0 commit comments

Comments
 (0)