You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Il tipo 'Observable<unknown>' non è assegnabile al tipo 'Observable<RouterAction | PayloadAction<"ADD_TODO", Todo> | PayloadAction<"REMOVE_TODO", string> | PayloadMetaAction<"LOAD_TODOS_REQUEST", unknown, unknown> | PayloadAction<"LOAD_TODOS_SUCCESS", Todo[]> | PayloadAction<...> | PayloadMetaAction<...> | PayloadMetaAction<...> | PayloadAction<...>>'.
Il tipo 'unknown' non è assegnabile al tipo 'RouterAction | PayloadAction<"ADD_TODO", Todo> | PayloadAction<"REMOVE_TODO", string> | PayloadMetaAction<"LOAD_TODOS_REQUEST", unknown, unknown> | PayloadAction<"LOAD_TODOS_SUCCESS", Todo[]> | PayloadAction<...> | PayloadMetaAction<...> | PayloadMetaAction<...> | PayloadAction<...>'.
Type '{}' is missing the following properties from type 'PayloadAction<"SAVE_TODOS_FAILURE", string>': type, payloadts(2322)
index.d.ts(36, 26): The expected type comes from the return type of this signature.
Expected behavior
Typescript compiles since the return type is correct
Description
When intercepting an asyncAction with an epic, I got a compiler error that it's also present on your sample application in the codesandbox
Mandatory info
Are you extending internal types to enable type-free syntax with
createReducer
?No
Did you checked compatibility notes and migration guides?
Yes
How to Reproduce
CodeSandbox Link
I do not have a personal codesandbox link, but the exact same error is present in your codesandbox link (https://codesandbox.io/s/github/piotrwitek/typesafe-actions/tree/master/codesandbox) in the file src/feature/todos/epic:
Expected behavior
Typescript compiles since the return type is correct
Suggested solution(s)
Project Dependencies
The text was updated successfully, but these errors were encountered: