chore: fixing api-reports

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-07-29 11:46:28 +02:00
parent 820944913c
commit 85ef461b0c
2 changed files with 19 additions and 0 deletions
@@ -7,7 +7,10 @@
import { AnalyticsApi } from '@backstage/frontend-plugin-api';
import { AnalyticsEvent } from '@backstage/frontend-plugin-api';
import { AppNode } from '@backstage/frontend-plugin-api';
import { AppNodeInstance } from '@backstage/frontend-plugin-api';
import { ErrorWithContext } from '@backstage/test-utils';
import { ExtensionDataRef } from '@backstage/frontend-plugin-api';
import { ExtensionDefinition } from '@backstage/frontend-plugin-api';
import { JsonObject } from '@backstage/types';
import { MockConfigApi } from '@backstage/test-utils';
@@ -36,6 +39,17 @@ export function createExtensionTester<TConfig>(
export { ErrorWithContext };
// @public (undocumented)
export class ExtensionQuery {
constructor(node: AppNode);
// (undocumented)
data<T>(ref: ExtensionDataRef<T>): T | undefined;
// (undocumented)
get instance(): AppNodeInstance;
// (undocumented)
get node(): AppNode;
}
// @public (undocumented)
export class ExtensionTester {
// (undocumented)
@@ -46,6 +60,10 @@ export class ExtensionTester {
},
): ExtensionTester;
// (undocumented)
data<T>(ref: ExtensionDataRef<T>): T | undefined;
// (undocumented)
query(id: string | ExtensionDefinition<any, any>): ExtensionQuery;
// (undocumented)
render(options?: { config?: JsonObject }): RenderResult;
}
@@ -17,6 +17,7 @@
export {
createExtensionTester,
type ExtensionTester,
type ExtensionQuery,
} from './createExtensionTester';
export { renderInTestApp, type TestAppOptions } from './renderInTestApp';