You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/kitsu-core/src/serialise/index.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -106,7 +106,7 @@ function hasID (node) {
106
106
* Handles the Bulk Extension support. See `serialise` for examples.
107
107
*
108
108
* @param {string} type Resource type
109
-
* @param {Array} payload The data
109
+
* @param {Array<Object>} payload The data
110
110
* @param {string} method Request type (PATCH, POST, DELETE)
111
111
* @param {Object} options Optional configuration for camelCase and pluralisation handling
112
112
* @param {Function} options.camelCaseTypes Convert library-entries and library_entries to libraryEntries (default no conversion). To use parameter, import camel from kitsu-core
* Serialises the root data object. See `serialise` for examples.
128
128
*
129
129
* @param {string} type Resource type
130
-
* @param {Array} payload The data
130
+
* @param {Object} payload The data
131
131
* @param {string} method Request type (PATCH, POST, DELETE)
132
132
* @param {Object} options Optional configuration for camelCase and pluralisation handling
133
133
* @param {Function} options.camelCaseTypes Convert library-entries and library_entries to libraryEntries (default no conversion). To use parameter, import camel from kitsu-core
* @param {string} method Request type (PATCH, POST, DELETE)
169
169
* @param {Object} options Optional configuration for camelCase and pluralisation handling
170
170
* @param {Function} options.camelCaseTypes Convert library-entries and library_entries to libraryEntries (default no conversion). To use parameter, import camel from kitsu-core
Copy file name to clipboardExpand all lines: packages/kitsu-core/src/splitModel/index.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
* @param {Object} options
8
8
* @param {Function} options.resourceCase Convert libraryEntries to library-entries or library_entries (default no conversion). To use parameter, import kebab or snake from kitsu-core
9
9
* @param {Function} options.pluralModel Pluralise models (default no pluralisation). To use parameter, import pluralize (or another pluralisation npm package)
10
-
* @returns {Array} Array containing the model name and the resource URL with pluralisation applied
10
+
* @returns {Array<string, string>} Array containing the model name and the resource URL with pluralisation applied
0 commit comments