From 997fa700e37da8ccab068c05d6047e862d5f5996 Mon Sep 17 00:00:00 2001 From: "Michael J. Roberts" <84131395+michealroberts@users.noreply.github.com> Date: Wed, 13 Sep 2023 17:06:07 +0100 Subject: [PATCH] fix: Amend client.camera.startExposure() route handler with correct ResponseType. fix: Amend client.camera.startExposure() route handler with correct ResponseType. Includes associated test suite for module export definition and expected output from API route. --- src/routes/camera.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/routes/camera.ts b/src/routes/camera.ts index c5ba96d..0b2ccee 100644 --- a/src/routes/camera.ts +++ b/src/routes/camera.ts @@ -178,7 +178,14 @@ export const camera = (base: URL, init?: RequestInit, headers?: () => Promise(body: { + action: < + T = { + duration: number + flat: boolean + dark: boolean + light: boolean + } + >(body: { duration: number flat: boolean dark: boolean