Skip to content

Commit 4e3ae1b

Browse files
veksenclaude
andcommitted
chore: annotate new as-any casts introduced by migration
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2a8adbf commit 4e3ae1b

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/remote/remote-controller.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ test("creating an index via endpoint adds it to the optimizing db", async () =>
111111
});
112112

113113
expect(createResult.status).toEqual(200);
114+
// as any: HandlerResult.body is unknown — will be typed (Site#2402)
114115
expect((createResult.body as any).success).toEqual(true);
115116

116117
// Verify the index was created on the optimizing db
@@ -157,6 +158,7 @@ test("controller returns extension error when pg_stat_statements is not installe
157158

158159
expect(syncResult.status).toEqual(200);
159160

161+
// as any: HandlerResult.body is unknown — will be typed (Site#2402)
160162
const body = syncResult.body as any;
161163
// Schema should still sync successfully
162164
expect(body.schema.type).toEqual("ok");

src/remote/remote-controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ type SyncStatus = typeof SyncStatus[keyof typeof SyncStatus];
2222

2323
type HandlerResult = {
2424
status: number;
25+
// TODO: type body per route (Site#2402)
2526
body: unknown;
2627
};
2728

0 commit comments

Comments
 (0)