Skip to content

Commit 53246f9

Browse files
committed
feat(decorators): strict types
1 parent a0f44f7 commit 53246f9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/decorators/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ import { createActionDecorator } from './action-related'
88
export * from './action-related'
99

1010
interface DecoratorReturnType<V> {
11-
(target: any, propertyKey: string, descriptor: { value?: V; get?(): V }): void
11+
(target: any, propertyKey: string, descriptor: { value?: V }): void
1212
}
1313

1414
export const ImmerReducer: <S = any>() => DecoratorReturnType<
15-
(state: Draft<S>, params?: any) => void
15+
(state: Draft<S>, params: any) => undefined | void
1616
> = createActionDecorator(immerReducerSymbols)
1717

1818
export const Reducer: <S = any>() => DecoratorReturnType<
19-
(state: S, params?: any) => S
19+
(state: S, params: any) => S
2020
> = createActionDecorator(reducerSymbols)
2121

2222
export const Effect: <A = any, S = any>() => DecoratorReturnType<

0 commit comments

Comments
 (0)