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:
@@ -11,7 +11,11 @@ const _default: BackstagePlugin<{}, {}>;
|
||||
export default _default;
|
||||
|
||||
// @alpha (undocumented)
|
||||
export const titleExtensionDataRef: ConfigurableExtensionDataRef<string, {}>;
|
||||
export const titleExtensionDataRef: ConfigurableExtensionDataRef<
|
||||
'title',
|
||||
string,
|
||||
{}
|
||||
>;
|
||||
|
||||
// (No @packageDocumentation comment for this package)
|
||||
```
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user