Skip to content

Commit

Permalink
fix(effects): make createEffect work with TS 5.3 (#4296)
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver authored Apr 11, 2024
1 parent 6b440ee commit 19c1f11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/effects/src/effect_creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ type ConditionallyDisallowActionCreator<DT, Result> = DT extends false
export function createEffect<
C extends EffectConfig & { functional?: false },
DT extends DispatchType<C>,
OT extends ObservableType<DT, OT>,
R extends EffectResult<OT>
OTP,
R extends EffectResult<OT>,
OT extends ObservableType<DT, OTP>
>(
source: () => R & ConditionallyDisallowActionCreator<DT, R>,
config?: C
Expand Down

0 comments on commit 19c1f11

Please sign in to comment.