Skip to content

Commit abcc599

Browse files
fix(push): fix return typing for observables to include undefined (#2907)
BREAKING CHANGE: BEFORE: ngrxPush typing doesn't consider `undefined` when the input type is an observable AFTER: ngrxPush typing considers `undefined` when the input type is an observable Closes #2888
1 parent ba8315f commit abcc599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/component/src/push/push.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class PushPipe<S> implements PipeTransform, OnDestroy {
7979

8080
transform<T>(potentialObservable: null): null;
8181
transform<T>(potentialObservable: undefined): undefined;
82-
transform<T>(potentialObservable: ObservableInput<T>): T;
82+
transform<T>(potentialObservable: ObservableInput<T>): T | undefined;
8383
transform<T>(
8484
potentialObservable: ObservableInput<T> | null | undefined
8585
): T | null | undefined {

0 commit comments

Comments
 (0)