Skip to content

Commit fdbdc67

Browse files
committed
test(service-analytics): type the relationship-path pin's outcome reader for both faces (#20933)
Claude-Session: https://claude.ai/code/session_01XY5uCwTjZj7884yYtyur4H Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5671f24 commit fdbdc67

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/services/service-analytics/src/__tests__/relationship-path-admission.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,9 @@ function makeService(
145145
}
146146

147147
/** The refusal's envelope and the object it names, or the answer. */
148-
const outcomeOf = (run: () => Promise<{ rows?: unknown }>) =>
148+
const outcomeOf = (run: () => Promise<object>) =>
149149
run().then(
150-
(r) => ({ answered: r.rows }),
150+
(r) => ({ answered: (r as { rows?: unknown }).rows }),
151151
(e: { code?: string; status?: number; object?: string }) => ({ refused: { code: e?.code, status: e?.status, object: e?.object } }),
152152
);
153153

0 commit comments

Comments
 (0)