Fixed #4379 - Menu components: RouterBindProps typing

This commit is contained in:
Tuğçe Küçükoğlu 2023-09-04 12:16:03 +03:00
parent e895b78e99
commit 411d62df2c
10 changed files with 206 additions and 10 deletions

View file

@ -175,6 +175,28 @@ export interface MenubarContext {
level: number;
}
/**
* Defines valid router binding props in Menubar component.
*/
export interface MenubarRouterBindProps {
/**
* Action element binding
*/
action: object;
/**
* Icon element binding
*/
icon: object;
/**
* Label element binding
*/
label: object;
/**
* Submenuicon elemnt binding
*/
submenuicon: object;
}
/**
* Defines valid properties in Menubar component.
*/
@ -240,7 +262,7 @@ export interface MenubarSlots {
/**
* Binding properties of the menuitem
*/
props: (...args: any) => string;
props: MenubarRouterBindProps;
/**
* State of the root
*/