Skip to content

Commit cbc7956

Browse files
committed
fix(types): prevent context to be any when ext is undefined
1 parent 09536a6 commit cbc7956

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ interface APIs<M extends Models> {
162162
}
163163

164164
// v3.0
165-
type ModelType<InitStateType = any, ActionKeys = any, ExtContext = any> = {
165+
type ModelType<InitStateType = any, ActionKeys = any, ExtContext = {}> = {
166166
actions: {
167167
[P in keyof ActionKeys]: Action<
168168
InitStateType,

0 commit comments

Comments
 (0)