Initial commit of files.

This commit is contained in:
2026-02-02 20:01:57 +00:00
commit 695f853c94
10000 changed files with 608932 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { ReplaySubject } from '../ReplaySubject';
import { multicast } from './multicast';
import { isFunction } from '../util/isFunction';
export function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) {
if (selectorOrScheduler && !isFunction(selectorOrScheduler)) {
timestampProvider = selectorOrScheduler;
}
const selector = isFunction(selectorOrScheduler) ? selectorOrScheduler : undefined;
return (source) => multicast(new ReplaySubject(bufferSize, windowTime, timestampProvider), selector)(source);
}
//# sourceMappingURL=publishReplay.js.map