Skip to content

Commit

Permalink
Fix typing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
baku89 committed Sep 27, 2023
1 parent 31fced3 commit 354b018
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Tethr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const UnsupportedConfigDesc: ConfigDesc<any> = {
value: null,
}

export const UnsupportedOperationResult: OperationResult = {
export const UnsupportedOperationResult: OperationResult<any> = {
status: 'unsupported',
}

Expand Down Expand Up @@ -880,11 +880,11 @@ export abstract class Tethr
// eslint-disable-next-line @typescript-eslint/no-unused-vars
option?: TakePhotoOption
): Promise<OperationResult<TethrObject[]>> {
return UnsupportedOperationResult
return {status: 'unsupported'}
}

async startLiveview(): Promise<OperationResult<MediaStream>> {
return UnsupportedOperationResult
return {status: 'unsupported'}
}
async stopLiveview(): Promise<OperationResult> {
return UnsupportedOperationResult
Expand Down

0 comments on commit 354b018

Please sign in to comment.