Skip to content

Commit

Permalink
fix(component-store): effect handles generics that extend upon a type
Browse files Browse the repository at this point in the history
  • Loading branch information
timdeschryver committed Jul 12, 2022
1 parent ea73f90 commit 11cc3c5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/component-store/src/component-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@ export class ComponentStore<T extends object> implements OnDestroy {
ObservableType = OriginType extends Observable<infer A> ? A : never,
// Return either an optional callback or a function requiring specific types as inputs
ReturnType = ProvidedType | ObservableType extends void
? (observableOrValue?: void | Observable<void>) => Subscription
? (
observableOrValue?: ObservableType | Observable<ObservableType>
) => Subscription
: (
observableOrValue: ObservableType | Observable<ObservableType>
) => Subscription
Expand Down

0 comments on commit 11cc3c5

Please sign in to comment.