Olivier Massot 1 anno fa
parent
commit
8444b71423
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      types/layout.d.ts

+ 3 - 3
types/layout.d.ts

@@ -18,8 +18,8 @@ interface MenuItem {
   avatar?: number
   /** Correspond à la page actuelle */
   active: boolean
-  /** Ouvre le lien dans un nouvel onglet */
-  target?: string
+  /** Définit l'attribut 'target' du lien */
+  target?: '_blank' | '_self' | '_parent' | '_top' | 'framename'
 }
 
 /**
@@ -30,7 +30,7 @@ interface MenuGroup {
   icon?: IconItem
   children?: MenuItems
   actions?: MenuItems
-  target?: string
+  target?: '_blank' | '_self' | '_parent' | '_top' | 'framename'
 }
 
 type MenuItems = Array<MenuItem | MenuGroup>