Skip to content

Commit

Permalink
feat: add optional param to type
Browse files Browse the repository at this point in the history
  • Loading branch information
jannikkeye committed Jul 11, 2023
1 parent 4db5180 commit d4cb3c6
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 d4cb3c6

Please sign in to comment.