MCPcopy Create free account
hub / github.com/ReactiveX/rxjs / validateDuration

Function validateDuration

packages/test/src/marble-parser.ts:355–360  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

353}
354
355function validateDuration(value: number): number {
356 if (!Number.isFinite(value) || value < 0) {
357 throw new TypeError(`Test durations must be finite and non-negative. Received ${value}.`);
358 }
359 return value;
360}
361
362function readMarbleValue<T>(character: string, values?: MarbleValueLookup<T>): T {
363 if (values === undefined) {

Callers 3

durationToMillisecondsFunction · 0.85
parseTimingPlanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected