Skip to content

Commit

Permalink
Fix type ResourceObject.
Browse files Browse the repository at this point in the history
Missing "meta".
  • Loading branch information
masterT committed Feb 25, 2022
1 parent b62474f commit eaabc0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/JsonApi/Specification.TypeGuards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ export function isResourceObject(obj: any, _argumentName?: string): obj is Resou
(typeof obj.relationships === "undefined" ||
isRelationshipsObject(obj.relationships) as boolean) &&
(typeof obj.links === "undefined" ||
isLinkObject(obj.links) as boolean)
isLinkObject(obj.links) as boolean) &&
(typeof obj.meta === "undefined" ||
isMetaObject(obj.meta) as boolean)
)
}

Expand Down
1 change: 1 addition & 0 deletions src/JsonApi/Specification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ export type ResourceObject = {
attributes?: AttributesObject;
relationships?: RelationshipsObject;
links?: LinkObject;
meta?: MetaObject;
};

/**
Expand Down

0 comments on commit eaabc0d

Please sign in to comment.