frontend-plugin-api: update extension data ref declaration to allow embedding of ID in type

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-07-20 12:47:09 +02:00
parent 2ab03460d5
commit 31bfc4417f
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',