Search Docs
Loading...
Skip to content

Type Alias: FeatureValue

type FeatureValue<V> = V extends (...args) => unknown ? V : V extends object ? { readonly [K in keyof V]: FeatureValue<V[K]> } : V;

A setting value as a read gives it: arrays and objects are read-only, because they are frozen. Writes accept the same type, so a value read from one feature can be written to another.

Type Parameters#

Type Parameter
V