Skip to main content

Type Alias: SafeTypeOperationCounter<Reason>

SafeTypeOperationCounter<Reason> = Readonly<{ getSnapshot: () => ReadonlyMap<Reason, number>; onFailure: (failure: Readonly<{ error: unknown; reason: Reason; }>) => void; }>

Defined in: _internal/safe-type-operation.ts:9

Counter contract used by test-time debug instrumentation.

Type Parametersโ€‹

Reasonโ€‹

Reason extends string