Skip to content

Commit

Permalink
fix: set defaults for ResourceDeserializer type
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD committed Apr 22, 2024
1 parent 7aeb271 commit d46e01f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/deserializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ export type AnyRelationshipDeserializer =
export type Relationships = Record<string, AnyRelationshipDeserializer>;

export type ResourceDeserializer<
TType extends string,
TAttributesSchema extends AttributesSchema | undefined,
TRelationships extends Relationships | undefined,
TDocumentMetaSchema extends MetaSchema | undefined,
TType extends string = string,
TAttributesSchema extends AttributesSchema | undefined = undefined,
TRelationships extends Relationships | undefined = undefined,
TDocumentMetaSchema extends MetaSchema | undefined = undefined,
> = {
type: TType;
attributesSchema?: TAttributesSchema;
Expand Down

0 comments on commit d46e01f

Please sign in to comment.