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