Skip to content

fix this type if the plugin works #117

@github-actions

Description

@github-actions

fix this type if the plugin works

the menu items don't have a children field defined

namespace Strapi {

// TODO: fix this type if the plugin works

  | GetAttributesValues<'api::team-member.team-member'>
// export type Menu = GetReturnType<PluginMenusMenu>

export interface MenuItem
  extends Omit<GetAttributesValues<'plugin::menus.menu-item'>, 'root_menu' | 'rootMenu'> {
  children?: MenuItem[]
}

// TODO: fix this type if the plugin works
// the menu items don't have a children field defined
export interface Menu extends Omit<GetAttributesValues<'plugin::menus.menu'>, 'items'> {
  items?: MenuItem[]
}

// declare global {
//   namespace Strapi {

da347451608bd6837e61dade4e3dd8c125a7e7de

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions