Skip to content

Commit

Permalink
fix: update type of to remove type recursion error issues (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBastin authored Jan 13, 2025
1 parent 1f41a6b commit 2cced0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export function createVersionedEntity<
*/
export function entityReference<Entity extends VersionedEntity<any, any>>(entity: Entity) {
return z
.custom<AllSchemasOfEntity<Entity>>((data) => {
.custom((data) => {
return entity.is(data)
})
.transform<InferredEntity<Entity>>((data) => {
Expand Down

0 comments on commit 2cced0a

Please sign in to comment.