Clean types

This commit is contained in:
Adria Navarro 2025-01-28 11:24:38 +01:00
parent c793bd8f5e
commit 59875b7d97
2 changed files with 2 additions and 3 deletions

View File

@ -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",

View File

@ -1,10 +1,10 @@
interface BaseUIComponentError {
key: string
message: string
}
interface UISettingComponentError extends BaseUIComponentError {
errorType: "setting"
key: string
}
interface UIAncestorComponentError extends BaseUIComponentError {