Skip to content

Commit

Permalink
Merge pull request #153 from siberiacancode/#152
Browse files Browse the repository at this point in the history
#152 into [email protected] 🐘 make value field in 'exists' and 'notExists' descriptors optional
  • Loading branch information
RiceWithMeat authored Feb 5, 2024
2 parents 3840d2b + 80d6357 commit bbe8c88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/utils/types/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type GraphQLTopLevelPlainEntityDescriptor<Check extends CheckMode = Check
: Check extends CheckActualValueCheckMode
? {
checkMode: Check;
value: never;
value?: never;
}
: never;

Expand All @@ -54,7 +54,7 @@ type GraphQLPropertyLevelPlainEntityDescriptor<Check extends CheckMode = CheckMo
: Check extends CheckActualValueCheckMode
? {
checkMode: Check;
value: never;
value?: never;
}
: never;

Expand All @@ -76,7 +76,7 @@ type GraphQLMappedEntityDescriptor<Check extends CheckMode = CheckMode> = Check
: Check extends CheckActualValueCheckMode
? {
checkMode: Check;
value: never;
value?: never;
}
: never;

Expand Down
6 changes: 3 additions & 3 deletions src/utils/types/rest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export type RestTopLevelPlainEntityDescriptor<Check extends CheckMode = CheckMod
: Check extends CheckActualValueCheckMode
? {
checkMode: Check;
value: never;
value?: never;
}
: never;

Expand All @@ -55,7 +55,7 @@ type RestPropertyLevelPlainEntityDescriptor<Check extends CheckMode = CheckMode>
: Check extends CheckActualValueCheckMode
? {
checkMode: Check;
value: never;
value?: never;
}
: never;

Expand All @@ -77,7 +77,7 @@ type RestMappedEntityDescriptor<Check extends CheckMode = CheckMode> = Check ext
: Check extends CheckActualValueCheckMode
? {
checkMode: Check;
value: never;
value?: never;
}
: never;

Expand Down

0 comments on commit bbe8c88

Please sign in to comment.