fix: remove 10 unused type-only imports and declarations (#22696)
This commit is contained in:
@@ -14,7 +14,6 @@ import {
|
|||||||
Switch,
|
Switch,
|
||||||
untrack,
|
untrack,
|
||||||
type ComponentProps,
|
type ComponentProps,
|
||||||
type JSXElement,
|
|
||||||
type ParentProps,
|
type ParentProps,
|
||||||
} from "solid-js"
|
} from "solid-js"
|
||||||
import { Dynamic } from "solid-js/web"
|
import { Dynamic } from "solid-js/web"
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import type {
|
|||||||
Part,
|
Part,
|
||||||
Path,
|
Path,
|
||||||
PermissionRequest,
|
PermissionRequest,
|
||||||
Project,
|
|
||||||
ProviderListResponse,
|
ProviderListResponse,
|
||||||
QuestionRequest,
|
QuestionRequest,
|
||||||
Session,
|
Session,
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
import { dict as en } from "./en"
|
import { dict as en } from "./en"
|
||||||
|
|
||||||
type Keys = keyof typeof en
|
|
||||||
|
|
||||||
export const dict = {
|
export const dict = {
|
||||||
"command.category.suggested": "추천",
|
"command.category.suggested": "추천",
|
||||||
"command.category.view": "보기",
|
"command.category.view": "보기",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { createOpencodeClient } from "@opencode-ai/sdk/v2"
|
import { createOpencodeClient } from "@opencode-ai/sdk/v2"
|
||||||
import type { GlobalEvent, Event } from "@opencode-ai/sdk/v2"
|
import type { GlobalEvent } from "@opencode-ai/sdk/v2"
|
||||||
import { createSimpleContext } from "./helper"
|
import { createSimpleContext } from "./helper"
|
||||||
import { createGlobalEmitter } from "@solid-primitives/event-bus"
|
import { createGlobalEmitter } from "@solid-primitives/event-bus"
|
||||||
import { batch, onCleanup, onMount } from "solid-js"
|
import { batch, onCleanup, onMount } from "solid-js"
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ import { Prompt } from "../component/prompt"
|
|||||||
import { Slot as HostSlot } from "./slots"
|
import { Slot as HostSlot } from "./slots"
|
||||||
import type { useToast } from "../ui/toast"
|
import type { useToast } from "../ui/toast"
|
||||||
import { Installation } from "@/installation"
|
import { Installation } from "@/installation"
|
||||||
import { type OpencodeClient } from "@opencode-ai/sdk/v2"
|
|
||||||
|
|
||||||
type RouteEntry = {
|
type RouteEntry = {
|
||||||
key: symbol
|
key: symbol
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { TextareaRenderable, TextAttributes } from "@opentui/core"
|
|||||||
import { useTheme } from "../context/theme"
|
import { useTheme } from "../context/theme"
|
||||||
import { useDialog, type DialogContext } from "./dialog"
|
import { useDialog, type DialogContext } from "./dialog"
|
||||||
import { createStore } from "solid-js/store"
|
import { createStore } from "solid-js/store"
|
||||||
import { onMount, Show, type JSX } from "solid-js"
|
import { onMount, Show } from "solid-js"
|
||||||
import { useKeyboard } from "@opentui/solid"
|
import { useKeyboard } from "@opentui/solid"
|
||||||
|
|
||||||
export type DialogExportOptionsProps = {
|
export type DialogExportOptionsProps = {
|
||||||
|
|||||||
@@ -1,10 +1,3 @@
|
|||||||
type Msg = {
|
|
||||||
file: string
|
|
||||||
spec: string
|
|
||||||
target: string
|
|
||||||
id: string
|
|
||||||
}
|
|
||||||
|
|
||||||
const raw = process.argv[2]
|
const raw = process.argv[2]
|
||||||
if (!raw) throw new Error("Missing worker payload")
|
if (!raw) throw new Error("Missing worker payload")
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { test, expect, mock, beforeEach } from "bun:test"
|
import { test, expect, mock, beforeEach } from "bun:test"
|
||||||
import { Effect } from "effect"
|
import { Effect } from "effect"
|
||||||
import type { MCP as MCPNS } from "../../src/mcp/index"
|
|
||||||
|
|
||||||
// Mock UnauthorizedError to match the SDK's class
|
// Mock UnauthorizedError to match the SDK's class
|
||||||
class MockUnauthorizedError extends Error {
|
class MockUnauthorizedError extends Error {
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import { Permission } from "../../src/permission"
|
|||||||
import { Plugin } from "../../src/plugin"
|
import { Plugin } from "../../src/plugin"
|
||||||
import { Provider as ProviderSvc } from "../../src/provider"
|
import { Provider as ProviderSvc } from "../../src/provider"
|
||||||
import { Env } from "../../src/env"
|
import { Env } from "../../src/env"
|
||||||
import type { Provider } from "../../src/provider"
|
|
||||||
import { ModelID, ProviderID } from "../../src/provider/schema"
|
import { ModelID, ProviderID } from "../../src/provider/schema"
|
||||||
import { Question } from "../../src/question"
|
import { Question } from "../../src/question"
|
||||||
import { Todo } from "../../src/session/todo"
|
import { Todo } from "../../src/session/todo"
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import type {
|
|||||||
QuestionRequest,
|
QuestionRequest,
|
||||||
SessionStatus,
|
SessionStatus,
|
||||||
TextPart,
|
TextPart,
|
||||||
Workspace,
|
|
||||||
Config as SdkConfig,
|
Config as SdkConfig,
|
||||||
} from "@opencode-ai/sdk/v2"
|
} from "@opencode-ai/sdk/v2"
|
||||||
import type { CliRenderer, ParsedKey, RGBA, SlotMode } from "@opentui/core"
|
import type { CliRenderer, ParsedKey, RGBA, SlotMode } from "@opentui/core"
|
||||||
|
|||||||
Reference in New Issue
Block a user