fix(lint): empty-interface PrSourceDescriptor → type alias, drop unused eslint-disable directives

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-06-06 00:15:28 -07:00
parent 841ff9d838
commit 854b6a30c9
2 changed files with 1 additions and 3 deletions

View File

@@ -26,7 +26,6 @@ import { request } from "../../test-request.js";
/** Captures the prompt the route fed the agent and returns canned `text`. */
function makeFakeAgent(text: string) {
const captured: { systemPrompt?: string; userPrompt?: string } = {};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const factory: any = async (opts: any) => {
captured.systemPrompt = opts.systemPrompt;
let textListener: ((delta: string) => void) | undefined;
@@ -49,7 +48,6 @@ function makeFakeAgent(text: string) {
* can assert the route releases the session even when the model turn throws. */
function makeRejectingAgent() {
const state = { disposed: false };
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const factory: any = async () => {
const session = {
on(_event: "text", _listener: (delta: string) => void) {},

View File

@@ -65,7 +65,7 @@ function resolveActivePrEntity(store: PrNodeStore, task: TaskDetail): PrEntity |
}
/** Identity of the PR an entity is created for, resolved from the task + node. */
export interface PrSourceDescriptor extends PrEntityCreateInput {}
export type PrSourceDescriptor = PrEntityCreateInput;
/** Input for the injected `createPr` callback (the dashboard GitHubClient wrapper). */
export interface PrCreateCallInput {