Skip to main content

Type Alias: Bare<R *extends* Registry>

A code that needs nothing beyond itself.

Bare<R extends Registry> = { [C in Code<R>]: [HasRequired<Meta<R, C>>] extends [never] ? C : never }[Code<R>]

Defined in: kit.ts:40

A code that needs nothing beyond itself.

Type Parameters

R

R extends Registry

Example

type NoMetaNeeded = ErrorKit.Bare<typeof REGISTRY> // every code declared with a plain number, no detail()/fault()<M>