Type alias InferTypeFromValue<V>

InferTypeFromValue<V>: {
    [P in keyof SpecValueTemplates]: Lowercase<V> extends MatchesTemplate<SpecValueTemplates[P]>
        ? SpecTypes[P]
        : never
}[keyof SpecValueTemplates]

Infers the SpecType to use for a given Specs item value (i.e. description).

Type Parameters

  • V extends string

Generated using TypeDoc