Clean types
This commit is contained in:
parent
c793bd8f5e
commit
59875b7d97
|
@ -203,10 +203,9 @@ function getMissingAncestors(screen: Screen) {
|
||||||
return name.endsWith("s") ? `${name}'` : `${name}s`
|
return name.endsWith("s") ? `${name}'` : `${name}s`
|
||||||
}
|
}
|
||||||
|
|
||||||
result[component._id!] = missingAncestors.map((ancestor: any) => {
|
result[component._id!] = missingAncestors.map(ancestor => {
|
||||||
const ancestorDefinition: any = getManifestDefinition(ancestor)
|
const ancestorDefinition: any = getManifestDefinition(ancestor)
|
||||||
return {
|
return {
|
||||||
key: ancestor.key,
|
|
||||||
message: `${pluralise(definition.name)} need to be inside a
|
message: `${pluralise(definition.name)} need to be inside a
|
||||||
<mark>${ancestorDefinition.name}</mark>`,
|
<mark>${ancestorDefinition.name}</mark>`,
|
||||||
errorType: "ancestor-setting",
|
errorType: "ancestor-setting",
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
interface BaseUIComponentError {
|
interface BaseUIComponentError {
|
||||||
key: string
|
|
||||||
message: string
|
message: string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UISettingComponentError extends BaseUIComponentError {
|
interface UISettingComponentError extends BaseUIComponentError {
|
||||||
errorType: "setting"
|
errorType: "setting"
|
||||||
|
key: string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface UIAncestorComponentError extends BaseUIComponentError {
|
interface UIAncestorComponentError extends BaseUIComponentError {
|
||||||
|
|
Loading…
Reference in New Issue