Skip to content

Commit d4c7229

Browse files
committed
test(service-storage): annotate the reap-engine double's parameters (#4797)
The fake is cast `as any` at the end, so its object-literal members were not contextually typed and each `object` parameter landed on an implicit any — three new TS7006s against a package whose type-check DEBT is a shrink-only ratchet. Annotating them keeps the entry moving in the direction the ratchet allows (52 recorded, 51 measured). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015KREcaEs85dphzUUqdYfX6
1 parent 90cc520 commit d4c7229

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/services/service-storage/src/lax-deviation-reclamation-gate.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,15 @@ function reapEngine() {
8383
const updates: Array<{ object: string; data: any }> = [];
8484
const engine: AttachmentLifecycleEngine & { updates: typeof updates } = {
8585
registerHook() {},
86-
async find(object, options: any) {
86+
async find(object: string, options: any) {
8787
const where = options?.where ?? {};
8888
return tables[object].filter((r) => Object.entries(where).every(([k, v]) => r[k] === v));
8989
},
90-
async findOne(object, options: any) {
90+
async findOne(object: string, options: any) {
9191
const where = options?.where ?? {};
9292
return tables[object].find((r) => Object.entries(where).every(([k, v]) => r[k] === v)) ?? null;
9393
},
94-
async update(object, data: any, options?: any) {
94+
async update(object: string, data: any, options?: any) {
9595
assertEngineUpdateDispatch(data, options);
9696
updates.push({ object, data });
9797
return data;

0 commit comments

Comments
 (0)