Type Alias: MetaOf<S>
What a status says its code hands back. A plain status says nothing, which is a meta with no keys.
MetaOf<
S> =SextendsCarries<infer M> ?M:Record<never,never>
Defined in: brand.ts:45
What a status says its code hands back. A plain status says nothing, which is a meta with no keys.
Type Parameters
S
S
The status to read the meta from.
Example
const REGISTRY = { WIDGET_NOT_FOUND: detail<{ widgetId: string }>(404) } as const satisfies Record<string, number>
type Meta = Brand.MetaOf<(typeof REGISTRY)['WIDGET_NOT_FOUND']> // { widgetId: string }
type Bare = Brand.MetaOf<500> // Record<never, never>: a plain status carries nothing