From e0657745af7d9cb7e9be687dc1ce7be19dc50a47 Mon Sep 17 00:00:00 2001 From: errorrik Date: Fri, 20 Oct 2023 20:52:16 +0800 Subject: [PATCH] add withRoute --- types/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index 2281af8..d95102c 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -111,4 +111,7 @@ export class Router { add(config: RouteConfig | RouteConfig[]): Router; } + +export function withRoute(ComponentClass: Component, router?: Router): Component + export const version = '2.0.2';