Skip to content

Commit

Permalink
fix: relation type
Browse files Browse the repository at this point in the history
  • Loading branch information
Hieuzest committed Sep 26, 2024
1 parent 1ea37e3 commit 8835533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export namespace Relation {
}

export type Include<T, S> = boolean | {
[P in keyof T]?: T[P] extends MaybeArray<infer U> | undefined ? U extends S ? Include<U, S> : Query.Expr<Flatten<U>> : never
[P in keyof T]?: T[P] extends MaybeArray<infer U> | undefined ? U extends S ? Include<U, S> : (U extends (infer I)[] ? Query.Expr<I> : never) : never
}

export type SetExpr<S extends object = any> = ((row: Row<S>) => Update<S>) | {
Expand Down

0 comments on commit 8835533

Please sign in to comment.