Skip to content

Commit

Permalink
chore: WIP add missing JSDoc type declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
Ldoppea authored and Crash-- committed Sep 22, 2022
1 parent 0d2f74a commit 2447efe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/cozy-stack-client/src/ShortcutsCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class ShortcutsCollection extends DocumentCollection {
* @param {string} attributes.name Filename
* @param {string} attributes.url Shortcut's URL
* @param {string} attributes.dir_id dir_id where to create the shortcut
* @param {string} attributes.type TODO
* @throws {Error} - explaining reason why creation failed
*/
async create(attributes) {
Expand Down
5 changes: 4 additions & 1 deletion packages/cozy-stack-client/src/xhrFetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ const headersFromString = headerString => {
* @private
* @param {string} fullpath - Route path
* @param {object} options - Fetch options
* @param {Function} options.onUploadProgress - Callback to receive upload progress events
* @param {(this: XMLHttpRequestUpload, ev: ProgressEvent<XMLHttpRequestEventTarget>) => any} options.onUploadProgress - Callback to receive upload progress events
* @param {string} options.method - TODO
* @param {object} options.headers - TODO
* @param {any} options.body - TODO
*/
const fetchWithXMLHttpRequest = async (fullpath, options) => {
const response = await new Promise((resolve, reject) => {
Expand Down

0 comments on commit 2447efe

Please sign in to comment.