Skip to content

Commit

Permalink
DRY WorkspaceApprovalParams
Browse files Browse the repository at this point in the history
  • Loading branch information
blazejkustra committed Jul 26, 2024
1 parent 91074a4 commit 7e9f4ce
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/libs/API/parameters/WorkspaceApprovalParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,8 @@ type CreateWorkspaceApprovalParams = {
employees: PolicyEmployee[];
};

type UpdateWorkspaceApprovalParams = {
authToken: string;
policyID: string;
employees: PolicyEmployee[];
};
type UpdateWorkspaceApprovalParams = CreateWorkspaceApprovalParams;

type RemoveWorkspaceApprovalParams = {
authToken: string;
policyID: string;
employees: PolicyEmployee[];
};
type RemoveWorkspaceApprovalParams = CreateWorkspaceApprovalParams;

export type {CreateWorkspaceApprovalParams, UpdateWorkspaceApprovalParams, RemoveWorkspaceApprovalParams};

0 comments on commit 7e9f4ce

Please sign in to comment.