fix(frontend-app-api): create plugin subroutes type

Signed-off-by: Camila Belo <camilaibs@gmail.com>
Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Camila Belo
2024-01-11 15:04:22 +01:00
parent 20a37d2fd8
commit 13f87f34fc
2 changed files with 16 additions and 6 deletions
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { ExternalRouteRef, RouteRef } from '../routing';
import { ExternalRouteRef, RouteRef, SubRouteRef } from '../routing';
/**
* Feature flag configuration.
@@ -27,7 +27,7 @@ export type FeatureFlagConfig = {
};
/** @public */
export type AnyRoutes = { [name in string]: RouteRef };
export type AnyRoutes = { [name in string]: RouteRef | SubRouteRef };
/** @public */
export type AnyExternalRoutes = { [name in string]: ExternalRouteRef };