Merge pull request #4155 from backstage/rugvip/noreg

core-api: remove deprecated registerRoute and deprecate addRoute
This commit is contained in:
Patrik Oldsberg
2021-01-20 12:02:34 +01:00
committed by GitHub
5 changed files with 61 additions and 31 deletions
-9
View File
@@ -54,13 +54,4 @@ addRoute(
Component: ComponentType<any>,
options?: RouteOptions,
): void;
/**
* @deprecated See the `addRoute` method
*/
registerRoute(
path: RoutePath,
Component: ComponentType<any>,
options?: RouteOptions,
): void;
```
-9
View File
@@ -15,15 +15,6 @@ addRoute(
Component: ComponentType<any>,
options?: RouteOptions,
): void;
/**
* @deprecated See the `addRoute` method
*/
registerRoute(
path: RoutePath,
Component: ComponentType<any>,
options?: RouteOptions,
): void;
```
## RouteRef