( flushThreshold: number, maxQueueSize: number, )
| 65 | * @throws {Error} If flushThreshold is not positive or exceeds maxQueueSize |
| 66 | */ |
| 67 | export function validateFlushThreshold( |
| 68 | flushThreshold: number, |
| 69 | maxQueueSize: number, |
| 70 | ): void { |
| 71 | if (flushThreshold <= 0) { |
| 72 | throw new Error('flushThreshold must be > 0'); |
| 73 | } |
| 74 | if (flushThreshold > maxQueueSize) { |
| 75 | throw new Error('flushThreshold must be <= maxQueueSize'); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | /** |
| 80 | * Configuration options for the PerformanceObserverSink. |
no outgoing calls
no test coverage detected