From 59cd2079b46ed17dc00d8412ff8b2615e3ca8fbc Mon Sep 17 00:00:00 2001 From: pikax Date: Fri, 9 Apr 2021 16:43:02 +0100 Subject: [PATCH] rollback router --- src/router.ts | 7 ------- src/types/index.ts | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/router.ts b/src/router.ts index 4f4f704e..68b0da8f 100644 --- a/src/router.ts +++ b/src/router.ts @@ -255,13 +255,6 @@ export interface Router { * @param to - Route location to navigate to */ push(to: RouteLocationRaw): Promise - /** - * Programmatically navigate to a new URL by pushing an entry in the history - * stack. - * - * @param to - typed route location - */ - // push(to: RouteNamedLocation): Promise /** * Programmatically navigate to a new URL by replacing the current entry in diff --git a/src/types/index.ts b/src/types/index.ts index ccefc923..85a60deb 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -218,7 +218,7 @@ export interface _RouteRecordBase extends PathParserOptions { /** * Array of nested routes. */ - children?: RouteRecordRaw[] | Readonly + children?: RouteRecordRaw[] /** * Aliases for the record. Allows defining extra paths that will behave like a * copy of the record. Allows having paths shorthands like `/users/:id` and -- 2.39.5