Skip to content

Commit 8e7f191

Browse files
committed
fix(app): remove remaining lint-effect casts
1 parent 82ee937 commit 8e7f191

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

packages/app/src/docker-git/menu-api.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ import {
1111
renderProjectSummaryLine
1212
} from "./api-client.js"
1313
import { asObject, asString, type JsonValue } from "./api-json.js"
14+
import type { AuthGithubStatusCommand } from "./frontend-lib/core/auth-domain.js"
1415
import type { MenuError } from "./menu-errors.js"
1516
import type { MenuEnv } from "./menu-types.js"
1617
import { type ProjectItem, resolveApiProjectItem } from "./project-item.js"
1718

18-
const menuGithubStatusCommand = {
19+
const menuGithubStatusCommand: AuthGithubStatusCommand = {
1920
_tag: "AuthGithubStatus",
2021
envGlobalPath: ""
21-
} as const
22+
}
2223

2324
const compact = <A>(values: ReadonlyArray<A | null>): ReadonlyArray<A> =>
2425
values.filter((value): value is A => value !== null)

packages/app/tests/docker-git/open-project-ssh.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ import { NodeContext } from "@effect/platform-node"
22
import { describe, expect, it } from "@effect/vitest"
33
import { Effect } from "effect"
44

5+
import type { ApiTerminalSession } from "../../src/docker-git/api-terminal-codec.js"
56
import type { HostError } from "../../src/docker-git/host-errors.js"
67
import { openResolvedProjectSshEffect } from "../../src/docker-git/open-project.js"
78
import { makeProjectItem } from "./fixtures/project-item.js"
89

9-
const makeSession = () => ({
10+
const makeSession = (): ApiTerminalSession => ({
1011
id: "session-1",
1112
projectId: "/controller/org/repo",
1213
sshCommand: "ssh -p 22 dev@127.0.0.1",
13-
status: "ready" as const,
14+
status: "ready",
1415
createdAt: "2026-04-10T00:00:00Z"
1516
})
1617

0 commit comments

Comments
 (0)