Skip to content

Commit

Permalink
fix(deserializer): properly infer resource result for relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD committed Mar 20, 2024
1 parent b163b9b commit 73e4f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deserializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export type InferRelationships<T> = T extends ResourceDeserializer<
type IncludeResult<TDeserializer extends AnyRelationshipDeserializer> =
TDeserializer extends AnyReferenceRelationshipDeserializer
? { id: string }
: InferInclude<TDeserializer>;
: ResourceResult<InferInclude<TDeserializer>>;

export type RelationshipResult<
TDeserializer extends AnyRelationshipDeserializer,
Expand Down

0 comments on commit 73e4f9d

Please sign in to comment.