We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 083c0fe commit 679c59bCopy full SHA for 679c59b
src/model.ts
@@ -56,7 +56,7 @@ type ProxiedModel<
56
Schemas extends Record<string, JsonApiResource>,
57
> = Schema &
58
Schema['attributes'] & {
59
- [Property in keyof NonNullable<Schema['relationships']>]: NonNullable<
+ [Property in keyof NonNullable<Schema['relationships']>]?: NonNullable<
60
NonNullable<Schema['relationships']>[Property]
61
> extends { data?: infer Data }
62
? Data extends { type: infer RelatedType extends string }
0 commit comments