diff --git a/.changeset/hungry-owls-sell.md b/.changeset/hungry-owls-sell.md
new file mode 100644
index 0000000000..cb2c18c21c
--- /dev/null
+++ b/.changeset/hungry-owls-sell.md
@@ -0,0 +1,5 @@
+---
+'@backstage/plugin-techdocs': patch
+---
+
+Fix techdocs config schema for custom elements sanitizer
diff --git a/plugins/techdocs/config.d.ts b/plugins/techdocs/config.d.ts
index 6103f273b5..bfc98a7927 100644
--- a/plugins/techdocs/config.d.ts
+++ b/plugins/techdocs/config.d.ts
@@ -49,7 +49,7 @@ export interface Config {
* this will allow all custom elements with tag name matching `^backstage-` like 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
* @visibility frontend
*/
- allowedCustomElementAttributeNameRegExp: string;
+ allowedCustomElementAttributeNameRegExp?: string;
};
};
}