Fixed custom element sanitizer config to be optional in types

Signed-off-by: Harsha Teja Kanna <h7kanna@gmail.com>
This commit is contained in:
Harsha Teja Kanna
2024-10-23 09:53:35 -04:00
parent 6cbe4f999c
commit 84b623645e
+2 -2
View File
@@ -49,7 +49,7 @@ export interface Config {
* this will allow all custom elements with tag name matching `^backstage-` like <backstage-custom-element /> etc.
* @visibility frontend
*/
allowedCustomElementTagNameRegExp: string;
allowedCustomElementTagNameRegExp?: string;
/**
* Allows listed custom element attribute name regex
* Example:
@@ -57,7 +57,7 @@ export interface Config {
* this will allow all custom element attributes matching `attribute1` or `attribute2` like <backstage-custom-element attribute1="yes" attribute2/>
* @visibility frontend
*/
allowedCustomElementAttributeNameRegExp: string;
allowedCustomElementAttributeNameRegExp?: string;
};
};
}