💡 Add 'tolgeeJson' type definition

master
KaKi87 2022-03-27 20:56:33 +02:00
parent 6a78eee9f1
commit 350e7b9065
1 changed files with 6 additions and 2 deletions

8
mod.js
View File

@ -21,9 +21,13 @@ module.exports = ({
'ak': apiKey
}
}));
/**
* @typedef tolgeeJson
* @type {Object.<string, Object.<string, string>>}
*/
/**
* Download project i18n data as JSON objects
* @returns {Promise}
* @returns {Promise<tolgeeJson>}
*/
const downloadJson = async () => {
const
@ -46,7 +50,7 @@ module.exports = ({
downloadJson,
/**
*
* @param {object} json
* @param {tolgeeJson} json
* @param {function} [onProgress]
* @returns {Promise}
*/