Skip to main content

Type Alias: Faults<R *extends* Registry>

Every code in the registry branded fault: the ones a store or adapter can raise itself, as opposed to only flow/validation logic.

Faults<R extends Registry> = { [C in Code<R>]: R[C] extends Fault ? C : never }[Code<R>]

Defined in: kit.ts:31

Every code in the registry branded fault: the ones a store or adapter can raise itself, as opposed to only flow/validation logic.

Type Parameters

R

R extends Registry

Example

type StoreRaisable = ErrorKit.Faults<typeof REGISTRY> // 'STORAGE_FAILED' | 'INTERNAL'