Skip to content

Commit

Permalink
remove AddSurchargeReturnType
Browse files Browse the repository at this point in the history
  • Loading branch information
anki247 committed Oct 17, 2023
1 parent a53a2d4 commit ed3783e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/clockodo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export class Clockodo {

async addSurcharge(
params: Params<Pick<Surcharge, typeof REQUIRED.ADD_SURCHARGE[number]>>
): Promise<AddSurchargeReturnType> {
): Promise<SurchargeReturnType> {
REQUIRED.checkRequired(params, REQUIRED.ADD_SURCHARGE);

return this.api.post("/v2/surcharges", params);
Expand Down Expand Up @@ -1045,10 +1045,6 @@ export type AddUserReturnType = {
user: User;
};

export type AddSurchargeReturnType = {
surcharge: Surcharge;
};

export type WorkTimesParams = {
/** The user ID by which the work times should be filtered */
usersId?: number;
Expand Down

0 comments on commit ed3783e

Please sign in to comment.