Skip to content

Commit 535aac4

Browse files
committed
fix(common): make links object partial
1 parent 47a46fa commit 535aac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export type LinkObject = {
1111
};
1212

1313
export type Link = LinkObject | string;
14-
export type Links<TKey extends string = string> = Record<TKey, Link | null>;
14+
export type Links<TKey extends string = string> = Partial<Record<TKey, Link | null>>;
1515

1616
export type Attributes = Record<string, unknown>;
1717
export type Relationships = Record<string, Relationship>;

0 commit comments

Comments
 (0)