update API reports + fixes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
```
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user