Skip to content

Commit cf423d2

Browse files
authored
fix: remove 10 unused type-only imports and declarations (anomalyco#22696)
1 parent 62ddb9d commit cf423d2

10 files changed

Lines changed: 2 additions & 17 deletions

File tree

packages/app/src/components/file-tree.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
Switch,
1515
untrack,
1616
type ComponentProps,
17-
type JSXElement,
1817
type ParentProps,
1918
} from "solid-js"
2019
import { Dynamic } from "solid-js/web"

packages/app/src/context/global-sync/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import type {
88
Part,
99
Path,
1010
PermissionRequest,
11-
Project,
1211
ProviderListResponse,
1312
QuestionRequest,
1413
Session,

packages/app/src/i18n/ko.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { dict as en } from "./en"
22

3-
type Keys = keyof typeof en
4-
53
export const dict = {
64
"command.category.suggested": "추천",
75
"command.category.view": "보기",

packages/opencode/src/cli/cmd/tui/context/sdk.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createOpencodeClient } from "@opencode-ai/sdk/v2"
2-
import type { GlobalEvent, Event } from "@opencode-ai/sdk/v2"
2+
import type { GlobalEvent } from "@opencode-ai/sdk/v2"
33
import { createSimpleContext } from "./helper"
44
import { createGlobalEmitter } from "@solid-primitives/event-bus"
55
import { batch, onCleanup, onMount } from "solid-js"

packages/opencode/src/cli/cmd/tui/plugin/api.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import { Prompt } from "../component/prompt"
1919
import { Slot as HostSlot } from "./slots"
2020
import type { useToast } from "../ui/toast"
2121
import { Installation } from "@/installation"
22-
import { type OpencodeClient } from "@opencode-ai/sdk/v2"
2322

2423
type RouteEntry = {
2524
key: symbol

packages/opencode/src/cli/cmd/tui/ui/dialog-export-options.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { TextareaRenderable, TextAttributes } from "@opentui/core"
22
import { useTheme } from "../context/theme"
33
import { useDialog, type DialogContext } from "./dialog"
44
import { createStore } from "solid-js/store"
5-
import { onMount, Show, type JSX } from "solid-js"
5+
import { onMount, Show } from "solid-js"
66
import { useKeyboard } from "@opentui/solid"
77

88
export type DialogExportOptionsProps = {

packages/opencode/test/fixture/plugin-meta-worker.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
type Msg = {
2-
file: string
3-
spec: string
4-
target: string
5-
id: string
6-
}
7-
81
const raw = process.argv[2]
92
if (!raw) throw new Error("Missing worker payload")
103

packages/opencode/test/mcp/oauth-auto-connect.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { test, expect, mock, beforeEach } from "bun:test"
22
import { Effect } from "effect"
3-
import type { MCP as MCPNS } from "../../src/mcp/index"
43

54
// Mock UnauthorizedError to match the SDK's class
65
class MockUnauthorizedError extends Error {

packages/opencode/test/session/prompt-effect.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { Permission } from "../../src/permission"
1414
import { Plugin } from "../../src/plugin"
1515
import { Provider as ProviderSvc } from "../../src/provider"
1616
import { Env } from "../../src/env"
17-
import type { Provider } from "../../src/provider"
1817
import { ModelID, ProviderID } from "../../src/provider/schema"
1918
import { Question } from "../../src/question"
2019
import { Todo } from "../../src/session/todo"

packages/plugin/src/tui.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import type {
1313
QuestionRequest,
1414
SessionStatus,
1515
TextPart,
16-
Workspace,
1716
Config as SdkConfig,
1817
} from "@opencode-ai/sdk/v2"
1918
import type { CliRenderer, ParsedKey, RGBA, SlotMode } from "@opentui/core"

0 commit comments

Comments
 (0)