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:
Patrik Oldsberg
2026-03-16 16:45:18 +01:00
parent ebeb0d4d8b
commit b1033a1fc9
2 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -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'];
}
/**