From 43242d45fc15a7e2bc7fd2ffee862f88f7066c7e Mon Sep 17 00:00:00 2001 From: wang <1509326266@qq.com> Date: Thu, 1 Aug 2024 21:03:17 +0800 Subject: [PATCH] feat(projects): supplementary type declaration --- src/index.ts | 3 ++- src/route-core/dts.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 030a073..b3e9354 100644 --- a/src/index.ts +++ b/src/index.ts @@ -6,13 +6,14 @@ import type { ElegantRouterTree } from './core'; import unplugin from './unplugin'; - import type { ElegantConstRoute, ElegantReactRouterOption } from './types'; + import type { ElegantConstRoute, ElegantReactRouterOption,RouteMeta } from './types'; export type { ElegantRouterOption, ElegantRouterFile, ElegantRouterNamePathMap, ElegantRouterNamePathEntry, + RouteMeta, ElegantRouterTree, ElegantReactRouterOption, ElegantConstRoute diff --git a/src/route-core/dts.ts b/src/route-core/dts.ts index d90d3c0..edc547a 100644 --- a/src/route-core/dts.ts +++ b/src/route-core/dts.ts @@ -53,7 +53,7 @@ function getDtsCode( let code = `${prefixComment} declare module "@elegant-router/types" { - type ElegantConstRoute = import('@elegant-router/react').ElegantConstRoute; + type ElegantConstRoute = import('@ohh-889/react-auto-route').ElegantConstRoute; /** * route layout