Search Docs
Loading...
Skip to content

Type Alias: FeatureShapeFor

type FeatureShapeFor<K> = FeatureRegistry[K] extends FeatureShape ? FeatureRegistry[K] : never;

The shape registered for a feature id; never when the entry in FeatureRegistry is not a FeatureShape, so a malformed entry fails type checks instead of allowing anything.

Type Parameters#

Type Parameter
K extends keyof FeatureRegistry