chore(lint): replace any with unknown or typed shapes in tests
- DB introspection tests: introduce local RawDb alias for casts that poke into the private .db handle. - IPC handler tests: introduce IpcHandler alias matching the registerHandle signature (event + unknown args). - selective-ipc / session-management: narrow handler and data params to unknown or the minimum shape the code reads.
This commit is contained in:
1 parent
d42d895f2a
commit
0d044aeee8
9 files changed
+82
-34
No files matched your search
@@ -736,8 +736,8 @@ describe("wiring integration", () => {
|
||||
function simulateRunFinishedSessionWiring(
|
||||
sessionService: ReturnType<typeof createMockSessionService>,
|
||||
db: {
|
||||
|
||||
getActiveTaskSession: (...args: any[]) => any;
|
||||
|
||||
getActiveTaskSession: (...args: unknown[]) => { id: string; taskId: string; runCount: number; totalInputTokens: number; totalOutputTokens: number } | null;
|
||||
},
|
||||
task: { id: string } | null,
|
||||
event: { inputTokens: number | null; outputTokens: number | null; runId: string },
|
||||
|
||||
Reference in new issue
Block a user