Merge pull request #25708 from backstage/rugvip/data-ref-ids

frontend-plugin-api: update extension data ref declaration to allow embedding of ID in type
This commit is contained in:
Patrik Oldsberg
2024-07-22 13:26:27 +02:00
committed by GitHub
27 changed files with 204 additions and 77 deletions
+3 -1
View File
@@ -31,7 +31,9 @@ const rootRouteRef = createRouteRef();
/**
* @alpha
*/
export const titleExtensionDataRef = createExtensionDataRef<string>('title');
export const titleExtensionDataRef = createExtensionDataRef<string>().with({
id: 'title',
});
const homePage = createPageExtension({
defaultPath: '/home',