Merge pull request #7936 from backstage/jhaals/remove-route-export

core-plugin-api: Remove exports of unused types
This commit is contained in:
Johan Haals
2021-11-16 09:03:04 +01:00
committed by GitHub
4 changed files with 5 additions and 27 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-plugin-api': minor
---
Remove exports of unused types(`RouteOptions` and `RoutePath`).
-8
View File
@@ -709,14 +709,6 @@ export type RouteFunc<Params extends AnyParams> = (
...[params]: Params extends undefined ? readonly [] : readonly [Params]
) => string;
// @public
export type RouteOptions = {
exact?: boolean;
};
// @public
export type RoutePath = string;
// @public
export type RouteRef<Params extends AnyParams = any> = {
$$routeRefType: 'absolute';
@@ -25,6 +25,4 @@ export type {
PluginConfig,
PluginHooks,
PluginOutput,
RouteOptions,
RoutePath,
} from './types';
@@ -17,23 +17,6 @@
import { RouteRef, SubRouteRef, ExternalRouteRef } from '../routing';
import { AnyApiFactory } from '../apis/system';
/**
* Route configuration.
*
* @public
*/
export type RouteOptions = {
// Whether the route path must match exactly, defaults to true.
exact?: boolean;
};
/**
* Type alias for paths.
*
* @public
*/
export type RoutePath = string;
/**
* Replace with using {@link RouteRef}s.
*