Skip to content

Commit

Permalink
fix(client-content): relax generic constraint types to avoid "Excessi…
Browse files Browse the repository at this point in the history
…ve stack depth comparing types" ts error
  • Loading branch information
matej21 committed Feb 26, 2024
1 parent 64d159c commit a3d6ead
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build/api/client-content.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,14 +361,14 @@ export type EntityTypeLike = {
[columnName: string]: any;
};
hasOne: {
[relationName: string]: EntityTypeLike;
[relationName: string]: any;
};
hasMany: {
[relationName: string]: EntityTypeLike;
[relationName: string]: any;
};
hasManyBy: {
[relationName: string]: {
entity: EntityTypeLike;
entity: any;
by: JSONObject;
};
};
Expand Down
6 changes: 3 additions & 3 deletions packages/client-content/src/types/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ export type EntityTypeLike = {
[columnName: string]: any
}
hasOne: {
[relationName: string]: EntityTypeLike
[relationName: string]: any
}
hasMany: {
[relationName: string]: EntityTypeLike
[relationName: string]: any
}
hasManyBy: {
[relationName: string]: {
entity: EntityTypeLike
entity: any
by: JSONObject
}
}
Expand Down

0 comments on commit a3d6ead

Please sign in to comment.