Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
types(server): put the rules inside another property for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Sep 12, 2022
1 parent f42059f commit 9c25037
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/types/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ export interface NotRuleConstraints {
}

export interface OrRuleConstraints {
// eslint-disable-next-line no-use-before-define
or: Rules[]
or: {
// eslint-disable-next-line no-use-before-define
rules: Rules[]
}
}

export interface UniqueEmployeeScheduleRuleConstraint {
Expand Down

0 comments on commit 9c25037

Please sign in to comment.