Skip to content

Commit

Permalink
fix: Amend client.camera.startExposure() route handler with correct R…
Browse files Browse the repository at this point in the history
…esponseType<T>.

fix: Amend client.camera.startExposure() route handler with correct ResponseType<T>. Includes associated test suite for module export definition and expected output from API route.
  • Loading branch information
michealroberts committed Sep 13, 2023
1 parent 749101c commit 997fa70
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/routes/camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,14 @@ export const camera = (base: URL, init?: RequestInit, headers?: () => Promise<He
},
{
name: 'startExposure',
action: <T = {}>(body: {
action: <
T = {
duration: number
flat: boolean
dark: boolean
light: boolean
}
>(body: {
duration: number
flat: boolean
dark: boolean
Expand Down

0 comments on commit 997fa70

Please sign in to comment.