MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / normalizeMaxChanges

Function normalizeMaxChanges

packages/core/src/debug/stateTimeline.ts:72–77  ·  view source on GitHub ↗
(maxChanges: number)

Source from the content-addressed store, hash-verified

70const DEFAULT_MAX_CHANGES = 10000;
71
72function normalizeMaxChanges(maxChanges: number): number {
73 if (!Number.isFinite(maxChanges)) return DEFAULT_MAX_CHANGES;
74 if (!Number.isInteger(maxChanges)) return DEFAULT_MAX_CHANGES;
75 if (maxChanges < 0) return 0;
76 return maxChanges;
77}
78
79/**
80 * Create a state timeline instance.

Callers 1

createStateTimelineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected