Skip to content

Commit

Permalink
chore: update jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
alicandko committed Sep 16, 2022
1 parent 246285d commit 9c2e939
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions lib/create-contentful-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@
* @prop {string} linkType - type of this link. If defined, either Entry or Asset
*/

/**
* Link to another entity in a different space.
* @memberof Entities
* @typedef ResourceLink
* @prop {string} type - type of this entity. Always ResourceLink.
* @prop {string} urn
* @prop {string} linkType - type of this link. Always Contentful:Entry
*/

/**
* @memberof ContentfulClientAPI
* @typedef {Object} ClientAPI
Expand Down
2 changes: 1 addition & 1 deletion lib/entities/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import resolveResponse from 'contentful-resolve-response'
* A Field in an Entry can have one of the following types that can be defined in Contentful. See <a href="https://www.contentful.com/developers/docs/references/field-type/">Field Types</a> for more details.
* @memberof Entities
* @typedef Field
* @type EntryFields.Symbol | EntryFields.Text | EntryFields.Integer | EntryFields.Number | EntryFields.Date | EntryFields.Boolean | EntryFields.Location | Entities.Link | Array<EntryFields.Symbol|Entities.Link> | Object
* @type EntryFields.Symbol | EntryFields.Text | EntryFields.Integer | EntryFields.Number | EntryFields.Date | EntryFields.Boolean | EntryFields.Location | Entities.Link | Entities.ResourceLink | Array<EntryFields.Symbol|Entities.Link|Entities.ResourceLink> | Object
*/

/**
Expand Down

0 comments on commit 9c2e939

Please sign in to comment.