Skip to main content

Type Alias: SafeTypeOperationCounter<Reason>

type 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