Correct the TConfig type
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/frontend-plugin-api': patch
|
||||
---
|
||||
|
||||
Correct the `TConfig` type of data references to only contain config
|
||||
@@ -407,7 +407,7 @@ export interface ConfigurableExtensionDataRef<
|
||||
optional(): ConfigurableExtensionDataRef<
|
||||
TData,
|
||||
TId,
|
||||
TData & {
|
||||
TConfig & {
|
||||
optional: true;
|
||||
}
|
||||
>;
|
||||
@@ -1800,7 +1800,7 @@ export const PageBlueprint: ExtensionBlueprint<
|
||||
| ConfigurableExtensionDataRef<
|
||||
RouteRef<AnyRouteRefParams>,
|
||||
'core.routing.ref',
|
||||
RouteRef<AnyRouteRefParams> & {
|
||||
{
|
||||
optional: true;
|
||||
}
|
||||
>,
|
||||
|
||||
@@ -55,7 +55,7 @@ export interface ConfigurableExtensionDataRef<
|
||||
optional(): ConfigurableExtensionDataRef<
|
||||
TData,
|
||||
TId,
|
||||
TData & { optional: true }
|
||||
TConfig & { optional: true }
|
||||
>;
|
||||
(t: TData): ExtensionDataValue<TData, TId>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user