Skip to content

Commit

Permalink
feat(projects): supplementary type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
mufeng889 committed Aug 1, 2024
1 parent 23fd579 commit 43242d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/route-core/dts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43242d4

Please sign in to comment.