Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikbache committed Jun 23, 2024
1 parent 885b866 commit 02a4e91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@ export type Settings = {
type WithBelongsToPostFix<Obj, Id, SnakeCase> = SnakeCase extends true
? {
// @ts-expect-error
[K in `${keyof Obj}_id`]?: Id[];
[K in `${keyof Obj}_id`]?: Id;
}
: {
// @ts-expect-error
[K in `${keyof Obj}Id`]?: Id[];
[K in `${keyof Obj}Id`]?: Id;
};

type WithHasManyPostFix<Obj, Id, SnakeCase> = SnakeCase extends true
Expand Down

0 comments on commit 02a4e91

Please sign in to comment.