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`
|
||||
}
|
||||
|
||||
result[component._id!] = missingAncestors.map((ancestor: any) => {
|
||||
result[component._id!] = missingAncestors.map(ancestor => {
|
||||
const ancestorDefinition: any = getManifestDefinition(ancestor)
|
||||
return {
|
||||
key: ancestor.key,
|
||||
message: `${pluralise(definition.name)} need to be inside a
|
||||
<mark>${ancestorDefinition.name}</mark>`,
|
||||
errorType: "ancestor-setting",
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
interface BaseUIComponentError {
|
||||
key: string
|
||||
message: string
|
||||
}
|
||||
|
||||
interface UISettingComponentError extends BaseUIComponentError {
|
||||
errorType: "setting"
|
||||
key: string
|
||||
}
|
||||
|
||||
interface UIAncestorComponentError extends BaseUIComponentError {
|
||||
|
|
Loading…
Reference in New Issue