@versatiles/style
Preparing search index...
@versatiles/style/migrate
byCode
Function byCode
byCode
<
C
extends
keyof
DiagnosticData
>
(
diagnostics
:
readonly
(
|
{
code
:
"input.notAStyle"
;
data
:
{
received
:
string
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"input.badOption"
;
data
:
{
cause
:
string
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"input.fetchFailed"
;
data
:
{
status
:
number
;
url
:
string
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"input.unreadable"
;
data
:
{
cause
:
string
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"schema.none"
;
data
:
{
vectorSources
:
number
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"source.schemaUnknown"
;
data
:
{
sourceId
:
string
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"schema.partial"
;
data
:
{
vectorSources
:
number
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"source.tilejsonUnavailable"
;
data
:
{
cause
:
string
;
sourceId
:
string
;
url
:
string
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"source.multiple"
;
data
:
{
sources
:
Record
<
string
,
string
>
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"font.unavailable"
;
data
:
{
reason
:
"not-published"
|
"no-font-list"
;
requested
:
string
[]
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"language.unavailable"
;
data
:
{
requested
:
string
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"projection.unsupported"
;
data
:
{
requested
:
string
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"icons.replaced"
;
data
:
{
sprite
:
unknown
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"color.conflict"
;
data
:
{
chosen
:
string
;
key
:
string
;
observed
:
{
color
:
string
;
layers
:
string
[]
}
[]
;
rule
:
"topmost"
;
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"color.collapsed"
;
data
:
{
chosen
:
string
;
key
:
string
;
observed
:
{
color
:
string
;
feature
:
string
;
layers
:
string
[]
}
[]
;
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"font.conflict"
;
data
:
{
chosen
:
string
;
observed
:
{
count
:
number
;
font
:
string
}
[]
;
topic
:
string
;
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"labelStyle.conflict"
;
data
:
{
chosen
:
string
|
number
;
observed
:
{
count
:
number
;
value
:
string
|
number
}
[]
;
property
:
string
;
topic
:
string
;
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"icon.conflict"
;
data
:
{
chosen
:
number
;
observed
:
{
probe
:
string
;
ratio
:
number
}
[]
;
option
:
"scale"
|
"spacing"
;
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"language.conflict"
;
data
:
{
chosen
?:
string
;
observed
:
{
language
:
string
;
probes
:
string
[]
}
[]
;
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"theme.ambiguous"
;
data
:
{
chosen
:
string
;
cost
:
number
;
margin
:
number
;
runnerUp
:
string
;
runnerUpCost
:
number
;
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"color.lowConfidence"
;
data
:
{
distance
:
number
;
estimate
:
string
;
evidenceShare
:
number
;
key
:
string
;
paletteColor
:
string
;
residual
:
number
;
threshold
:
number
;
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"color.unobserved"
;
data
:
{
count
:
number
;
keys
:
string
[]
;
total
:
number
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"layer.unread"
;
data
:
{
count
:
number
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
)
[]
,
code
:
C
,
)
:
Diagnostic
<
C
>
[]
Every diagnostic with this code, typed to that code's payload.
Type Parameters
C
extends
keyof
DiagnosticData
Parameters
diagnostics
:
readonly
(
|
{
code
:
"input.notAStyle"
;
data
:
{
received
:
string
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"input.badOption"
;
data
:
{
cause
:
string
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"input.fetchFailed"
;
data
:
{
status
:
number
;
url
:
string
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"input.unreadable"
;
data
:
{
cause
:
string
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"schema.none"
;
data
:
{
vectorSources
:
number
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"source.schemaUnknown"
;
data
:
{
sourceId
:
string
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"schema.partial"
;
data
:
{
vectorSources
:
number
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"source.tilejsonUnavailable"
;
data
:
{
cause
:
string
;
sourceId
:
string
;
url
:
string
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"source.multiple"
;
data
:
{
sources
:
Record
<
string
,
string
>
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"font.unavailable"
;
data
:
{
reason
:
"not-published"
|
"no-font-list"
;
requested
:
string
[]
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"language.unavailable"
;
data
:
{
requested
:
string
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"projection.unsupported"
;
data
:
{
requested
:
string
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"icons.replaced"
;
data
:
{
sprite
:
unknown
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"color.conflict"
;
data
:
{
chosen
:
string
;
key
:
string
;
observed
:
{
color
:
string
;
layers
:
string
[]
}
[]
;
rule
:
"topmost"
;
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"color.collapsed"
;
data
:
{
chosen
:
string
;
key
:
string
;
observed
:
{
color
:
string
;
feature
:
string
;
layers
:
string
[]
}
[]
;
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"font.conflict"
;
data
:
{
chosen
:
string
;
observed
:
{
count
:
number
;
font
:
string
}
[]
;
topic
:
string
;
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"labelStyle.conflict"
;
data
:
{
chosen
:
string
|
number
;
observed
:
{
count
:
number
;
value
:
string
|
number
}
[]
;
property
:
string
;
topic
:
string
;
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"icon.conflict"
;
data
:
{
chosen
:
number
;
observed
:
{
probe
:
string
;
ratio
:
number
}
[]
;
option
:
"scale"
|
"spacing"
;
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"language.conflict"
;
data
:
{
chosen
?:
string
;
observed
:
{
language
:
string
;
probes
:
string
[]
}
[]
;
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"theme.ambiguous"
;
data
:
{
chosen
:
string
;
cost
:
number
;
margin
:
number
;
runnerUp
:
string
;
runnerUpCost
:
number
;
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"color.lowConfidence"
;
data
:
{
distance
:
number
;
estimate
:
string
;
evidenceShare
:
number
;
key
:
string
;
paletteColor
:
string
;
residual
:
number
;
threshold
:
number
;
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"color.unobserved"
;
data
:
{
count
:
number
;
keys
:
string
[]
;
total
:
number
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
|
{
code
:
"layer.unread"
;
data
:
{
count
:
number
}
;
message
:
string
;
optionPath
?:
string
;
origin
?:
DiagnosticOrigin
;
severity
:
Severity
;
}
)
[]
code
:
C
Returns
Diagnostic
<
C
>
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@versatiles/style
Loading...
Every diagnostic with this code, typed to that code's payload.