update API reports + fixes

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-09-08 16:46:21 +02:00
parent cd2eed66d7
commit c17fc876f2
3 changed files with 9 additions and 4 deletions
@@ -16,6 +16,7 @@
import { AppConfig } from '@backstage/config';
import { JsonObject } from '@backstage/types';
import { AppConfigLoader } from './types';
/**
* The default config loader, which expects that config is available at compile-time
@@ -29,9 +30,8 @@ import { JsonObject } from '@backstage/types';
*
* @public
*/
export async function defaultConfigLoader(): Promise<AppConfig[]> {
return defaultConfigLoaderSync();
}
export const defaultConfigLoader: AppConfigLoader = async () =>
defaultConfigLoaderSync();
/** @internal */
export function defaultConfigLoaderSync(
+5 -1
View File
@@ -6,9 +6,13 @@
/// <reference types="react" />
import { BackstagePlugin } from '@backstage/frontend-plugin-api';
import { ConfigApi } from '@backstage/core-plugin-api';
// @public (undocumented)
export function createApp(options: { plugins: BackstagePlugin[] }): {
export function createApp(options: {
plugins: BackstagePlugin[];
config?: ConfigApi;
}): {
createRoot(): JSX.Element;
};
```
+1
View File
@@ -12,6 +12,7 @@ import { PortableSchema } from '@backstage/frontend-plugin-api';
export function createEndpointExtension<TConfig extends {}>(options: {
id: string;
configSchema?: PortableSchema<TConfig>;
disabled?: boolean;
factory: (options: { config: TConfig }) => {
endpoint: GraphQLEndpoint;
};