Skip to content

Commit

Permalink
fix: type error of INavItem, INavItem should support the activePath a…
Browse files Browse the repository at this point in the history
…ttribute
  • Loading branch information
nanianlisao committed Jul 31, 2023
1 parent 3ccc545 commit 9d9886a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/theme-api/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export type SocialTypes =

export type INavItems = (INavItem & { children?: INavItem[] })[];
export type INav = INavItems | Record<string, INavItems>;
type IUserNavItem = Pick<INavItem, 'title' | 'link'>;
type IUserNavItem = Pick<INavItem, 'title' | 'link' | 'activePath'>;
export type IUserNavMode = 'override' | 'append' | 'prepend';
export type IUserNavItems = (IUserNavItem & { children?: IUserNavItem[] })[];
export type IUserNavValue = IUserNavItems | Record<string, IUserNavItems>;
Expand Down

0 comments on commit 9d9886a

Please sign in to comment.