Skip to content

Commit

Permalink
fix(common): make links object partial
Browse files Browse the repository at this point in the history
  • Loading branch information
DASPRiD committed Mar 23, 2024
1 parent 47a46fa commit 535aac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type LinkObject = {
};

export type Link = LinkObject | string;
export type Links<TKey extends string = string> = Record<TKey, Link | null>;
export type Links<TKey extends string = string> = Partial<Record<TKey, Link | null>>;

export type Attributes = Record<string, unknown>;
export type Relationships = Record<string, Relationship>;
Expand Down

0 comments on commit 535aac4

Please sign in to comment.