File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,15 @@ import { createActionDecorator } from './action-related'
8
8
export * from './action-related'
9
9
10
10
interface DecoratorReturnType < V > {
11
- ( target : any , propertyKey : string , descriptor : { value ?: V ; get ? ( ) : V } ) : void
11
+ ( target : any , propertyKey : string , descriptor : { value ?: V } ) : void
12
12
}
13
13
14
14
export const ImmerReducer : < S = any > ( ) => DecoratorReturnType <
15
- ( state : Draft < S > , params ? : any ) => void
15
+ ( state : Draft < S > , params : any ) => undefined | void
16
16
> = createActionDecorator ( immerReducerSymbols )
17
17
18
18
export const Reducer : < S = any > ( ) => DecoratorReturnType <
19
- ( state : S , params ? : any ) => S
19
+ ( state : S , params : any ) => S
20
20
> = createActionDecorator ( reducerSymbols )
21
21
22
22
export const Effect : < A = any , S = any > ( ) => DecoratorReturnType <
You can’t perform that action at this time.
0 commit comments