Skip to main content
Version: Next

ExtensionDataContainer

Home > @backstage/frontend-plugin-api > ExtensionDataContainer

Signature:

export type ExtensionDataContainer<UExtensionData extends AnyExtensionDataRef> = Iterable<UExtensionData extends ExtensionDataRef<infer IData, infer IId, infer IConfig> ? IConfig['optional'] extends true ? never : ExtensionDataValue<IData, IId> : never> & {
get<TId extends UExtensionData['id']>(ref: ExtensionDataRef<any, TId, any>): UExtensionData extends ExtensionDataRef<infer IData, TId, infer IConfig> ? IConfig['optional'] extends true ? IData | undefined : IData : never;
};

References: AnyExtensionDataRef, ExtensionDataRef, ExtensionDataValue