Skip to content

Commit 42d1b10

Browse files
committed
fix: resolve TypeScript errors for release build
1 parent d6e9470 commit 42d1b10

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useVirtualizer } from "@tanstack/react-virtual";
33
import { useAtom } from "jotai";
44
import { atomWithStorage } from "jotai/utils";
55
import { version } from "../package.json";
6-
import { PanelLeft, User, ExternalLink, FolderOpen, ChevronDown, ChevronRight as ChevronRightIcon, HelpCircle, Copy, Download, Check, MoreHorizontal, RefreshCw, ChevronLeft, ChevronRight, Store, Archive, RotateCcw, List, FolderTree, Folder, Terminal, FileText } from "lucide-react";
6+
import { PanelLeft, User, ExternalLink, FolderOpen, ChevronDown, HelpCircle, Copy, Download, Check, MoreHorizontal, RefreshCw, ChevronLeft, ChevronRight, Store, Archive, RotateCcw, List, FolderTree, Folder, Terminal, FileText } from "lucide-react";
77
import { Collapsible, CollapsibleTrigger, CollapsibleContent as CollapsibleBody } from "./components/ui/collapsible";
88
import { openUrl } from "@tauri-apps/plugin-opener";
99
import Markdown from "react-markdown";
@@ -1923,7 +1923,7 @@ function CommandsView({
19231923
const deprecatedCount = commands.filter((c) => c.status !== "active").length;
19241924

19251925
// Build tree structure for tree view (supports unlimited nesting)
1926-
type FolderNode = { type: "folder"; name: string; path: string; childMap: Map<string, TreeNode> };
1926+
type FolderNode = { type: "folder"; name: string; path: string; childMap: Map<string, FolderNode | { type: "command"; command: LocalCommand }> };
19271927
type TreeNode = { type: "folder"; name: string; path: string; children: TreeNode[] } | { type: "command"; command: LocalCommand };
19281928

19291929
const buildTree = (cmds: LocalCommand[]): TreeNode[] => {

src/components/DocumentReader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useState, useEffect, useRef, useCallback, useMemo, SetStateAction } from "react";
1+
import { useState, useEffect, useRef, useCallback, useMemo } from "react";
22
import Markdown from "react-markdown";
33
import remarkGfm from "remark-gfm";
44
import { Prism as SyntaxHighlighter } from "react-syntax-highlighter";

0 commit comments

Comments
 (0)