Make createDevApp options explicit
Define createDevApp options directly so the helper only exposes features and a typed bindRoutes property without inheriting from createApp options. Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor
This commit is contained in:
@@ -11,8 +11,8 @@ import { FrontendFeatureLoader } from '@backstage/frontend-plugin-api';
|
||||
export function createDevApp(options: CreateDevAppOptions): void;
|
||||
|
||||
// @public
|
||||
export interface CreateDevAppOptions
|
||||
extends Pick<CreateAppOptions, 'bindRoutes'> {
|
||||
export interface CreateDevAppOptions {
|
||||
bindRoutes?: CreateAppOptions['bindRoutes'];
|
||||
features: (FrontendFeature | FrontendFeatureLoader)[];
|
||||
}
|
||||
```
|
||||
|
||||
@@ -45,12 +45,16 @@ const BuiCss = lazy(() => import('./BuiCss'));
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export interface CreateDevAppOptions
|
||||
extends Pick<CreateAppOptions, 'bindRoutes'> {
|
||||
export interface CreateDevAppOptions {
|
||||
/**
|
||||
* The list of features to load in the dev app.
|
||||
*/
|
||||
features: (FrontendFeature | FrontendFeatureLoader)[];
|
||||
|
||||
/**
|
||||
* Allows for the binding of plugins' external route refs within the dev app.
|
||||
*/
|
||||
bindRoutes?: CreateAppOptions['bindRoutes'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user