Maps an inferred decision value to the metadata that mirrors it: strings
(enumerations) to ChoiceMeta, numbers to ScoreMeta, booleans to
YesNoMeta, and objects to a nested mapping.
API
export type MetaOf<V> = V extends string
? ChoiceMeta
: V extends boolean
? YesNoMeta
: V extends number
? ScoreMeta
: {
[K in keyof V]: MetaOf <V[K]>;
};MetaOf
@typeV