Type alias InferTypeFromKey<K>

InferTypeFromKey<K>: {
    [P in keyof SpecKeyTemplates]: K extends MatchesTemplate<SpecKeyTemplates[P]>
        ? SpecTypes[P]
        : never
}[keyof SpecKeyTemplates]

Infers the SpecType to use for a given Specs item key.

Type Parameters

  • K extends string

Generated using TypeDoc