Skip to content

Commit c4b9ede

Browse files
authored
feat(shareReplay): use another observable to control resets
This feature, first introduced for the share operator, is equally as desirable for the shareReplay operator.
1 parent 8e0f8cc commit c4b9ede

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/internal/operators/shareReplay.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
import { Observable } from '../Observable';
12
import { ReplaySubject } from '../ReplaySubject';
23
import { MonoTypeOperatorFunction, SchedulerLike } from '../types';
34
import { share } from './share';
45

56
export interface ShareReplayConfig {
67
bufferSize?: number;
78
windowTime?: number;
8-
refCount: boolean;
9+
refCount: boolean | (() => Observable<any>);
910
scheduler?: SchedulerLike;
1011
}
1112

0 commit comments

Comments
 (0)