Skip to content

Commit 82d1ea6

Browse files
nikgrafCopilot
andauthored
Update packages/hypergraph/src/entity/types.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 83764ee commit 82d1ea6

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

packages/hypergraph/src/entity/types.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,15 @@ export type EntityIdFilter = {
7474
is?: string;
7575
};
7676

77-
export type RelationEntityIdFilter = {
78-
is?: string;
79-
in?: readonly string[];
80-
};
77+
export type RelationEntityIdFilter =
78+
| {
79+
is: string;
80+
in?: never;
81+
}
82+
| {
83+
in: readonly string[];
84+
is?: never;
85+
};
8186

8287
export type CrossFieldFilter<T, Extra extends object = Record<never, never>> = {
8388
[K in keyof T]?: EntityFieldFilter<T[K]>;

0 commit comments

Comments
 (0)