Skip to content

Type SidebarNavItem is wrongly deleted from types while removing content #4

@rakeshtembhurne

Description

@rakeshtembhurne

When running pnpm run remove-content, it deletes a type SidebarNavItem, which is imported and required by site.ts. Here's how git diff looks.

diff --git a/types/index.d.ts b/types/index.d.ts
index 8d056c5..5030481 100644
--- a/types/index.d.ts
+++ b/types/index.d.ts
@@ -30,15 +30,3 @@ export type MainNavItem = NavItem;
 export type MarketingConfig = {
   mainNav: MainNavItem[];
 };
-
-export type SidebarNavItem = {
-  title: string;
-  items: NavItem[];
-  authorizeOnly?: UserRole;
-  icon?: keyof typeof Icons;
-};
-
-export type DocsConfig = {
-  mainNav: MainNavItem[];
-  sidebarNav: SidebarNavItem[];
-};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions