Browse Source

fix type error

Yuki Takei 1 year ago
parent
commit
9b08ef9e0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/app/src/services/renderer/recommended-whitelist.ts

+ 1 - 1
apps/app/src/services/renderer/recommended-whitelist.ts

@@ -23,7 +23,7 @@ const excludeRestrictedClassAttributes = (propertyDefinitions: PropertyDefinitio
 };
 
 // generate relaxed schema
-const relaxedSchemaAttributes = structuredClone(defaultSchema.attributes) ?? {};
+const relaxedSchemaAttributes: Record<string, PropertyDefinition[]> = structuredClone(defaultSchema.attributes) ?? {};
 relaxedSchemaAttributes.a = excludeRestrictedClassAttributes(relaxedSchemaAttributes.a);
 relaxedSchemaAttributes.ul = excludeRestrictedClassAttributes(relaxedSchemaAttributes.ul);
 relaxedSchemaAttributes.li = excludeRestrictedClassAttributes(relaxedSchemaAttributes.li);