Skip to content

Commit

Permalink
fix: make arrays of entities relation fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Char2sGu committed May 21, 2021
1 parent da7bb61 commit d63d6ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/relation-path.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { ExtractNestedKeys } from "../utils";

export type RelationPath<Entity> = ExtractNestedKeys<
Entity,
Record<string, any>
Record<string, any> | Record<string, any>[]
>;

0 comments on commit d63d6ad

Please sign in to comment.