Preparing search index...
The search index is not available
almostmagic
almostmagic
InferTypeFromValue
Type alias InferTypeFromValue<V>
Infer
Type
From
Value
<
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
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
almostmagic
GenerateException
GenerateMeta
Generator
SpecMismatchException
EPSTemplate
GenerateExample
GenerateExceptionType
GenerateOptions
GenerateOptionsBase
InferTypeFromKey
InferTypeFromSpecEntry
InferTypeFromValue
Inputs
Language
MatchesTemplate
MatchingOutput
MatchingOutputTypeKeys
MatchingSpecs
Role
SpecKeyTemplates
SpecType
Loading...
Generated using
TypeDoc
Infers the SpecType to use for a given Specs item value (i.e. description).