Skip to content

Commit

Permalink
feat: Improve types of getTargethours()
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns authored Jul 11, 2023
2 parents 4db5180 + d4cb3c6 commit 3ecfb8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/clockodo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,9 @@ export class Clockodo {
return this.api.get("/targethours/" + id, remainingParams);
}

async getTargethours(params?: Params): Promise<TargethoursReturnType> {
async getTargethours(
params?: Params<{ usersId?: number }>
): Promise<TargethoursReturnType> {
return this.api.get("/targethours", params);
}

Expand Down

0 comments on commit 3ecfb8f

Please sign in to comment.