Skip to content

Commit 579e8b0

Browse files
committed
fix typedef
1 parent f336334 commit 579e8b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/JSONAPISerializer.js

+1
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,7 @@ module.exports = class JSONAPISerializer {
10001000
* @property {string|Function} type a string or a function for the type to use for serializing the relationship (type need to be register)
10011001
* @property {string} [alternativeKey] an alternative key (string or path) to use if relationship key not exist (example: 'author_id' as an alternative key for 'author' relationship)
10021002
* @property {string} [schema] a custom schema for serializing the relationship. If no schema define, it use the default one.
1003+
* @property {Function} [data] a function which returns the data to serialize for the relationship
10031004
* @property {Function|object} [links] describes the links for the relationship
10041005
* @property {Function|object} [meta] describes meta that contains non-standard meta-information about the relationship
10051006
* @property {Function} [deserialize] describes the function which should be used to deserialize a related property which is not included in the JSON:API document

0 commit comments

Comments
 (0)