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:
@@ -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) {},
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user