Some checks failed
Main Confidence / confidence (push) Failing after 45s
## Summary - introduce surface-aware compressed governance outcomes and reuse the shared truth/explanation seams for operator-first summaries - apply the compressed outcome hierarchy across baseline, evidence, review, review-pack, canonical review/evidence, and artifact-oriented operation-run surfaces - expand spec 214 fixtures and Pest coverage, and fix tenant-panel route assertions by generating explicit tenant-panel URLs in the affected Filament tests ## Validation - `cd apps/platform && ./vendor/bin/sail bin pint --dirty --format agent` - focused governance compression suite from `specs/214-governance-outcome-compression/quickstart.md` passed (`68` tests, `445` assertions) - `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Filament/InventoryItemResourceTest.php tests/Feature/Filament/BackupSetUiEnforcementTest.php tests/Feature/Filament/RestoreRunUiEnforcementTest.php` passed (`18` tests, `81` assertions) Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #253
54 lines
1.9 KiB
Plaintext
54 lines
1.9 KiB
Plaintext
import { OperatorFunction } from '../types';
|
|
/**
|
|
* Buffers the source Observable values until the size hits the maximum
|
|
* `bufferSize` given.
|
|
*
|
|
* <span class="informal">Collects values from the past as an array, and emits
|
|
* that array only when its size reaches `bufferSize`.</span>
|
|
*
|
|
* 
|
|
*
|
|
* Buffers a number of values from the source Observable by `bufferSize` then
|
|
* emits the buffer and clears it, and starts a new buffer each
|
|
* `startBufferEvery` values. If `startBufferEvery` is not provided or is
|
|
* `null`, then new buffers are started immediately at the start of the source
|
|
* and when each buffer closes and is emitted.
|
|
*
|
|
* ## Examples
|
|
*
|
|
* Emit the last two click events as an array
|
|
*
|
|
* ```ts
|
|
* import { fromEvent, bufferCount } from 'rxjs';
|
|
*
|
|
* const clicks = fromEvent(document, 'click');
|
|
* const buffered = clicks.pipe(bufferCount(2));
|
|
* buffered.subscribe(x => console.log(x));
|
|
* ```
|
|
*
|
|
* On every click, emit the last two click events as an array
|
|
*
|
|
* ```ts
|
|
* import { fromEvent, bufferCount } from 'rxjs';
|
|
*
|
|
* const clicks = fromEvent(document, 'click');
|
|
* const buffered = clicks.pipe(bufferCount(2, 1));
|
|
* buffered.subscribe(x => console.log(x));
|
|
* ```
|
|
*
|
|
* @see {@link buffer}
|
|
* @see {@link bufferTime}
|
|
* @see {@link bufferToggle}
|
|
* @see {@link bufferWhen}
|
|
* @see {@link pairwise}
|
|
* @see {@link windowCount}
|
|
*
|
|
* @param bufferSize The maximum size of the buffer emitted.
|
|
* @param startBufferEvery Interval at which to start a new buffer.
|
|
* For example if `startBufferEvery` is `2`, then a new buffer will be started
|
|
* on every other value from the source. A new buffer is started at the
|
|
* beginning of the source by default.
|
|
* @return A function that returns an Observable of arrays of buffered values.
|
|
*/
|
|
export declare function bufferCount<T>(bufferSize: number, startBufferEvery?: number | null): OperatorFunction<T, T[]>;
|
|
//# sourceMappingURL=bufferCount.d.ts.map |