feat: add DistributableRaw type for Githubish release assets

This commit is contained in:
AJ ONeal
2024-10-12 00:48:29 +00:00
parent b7a113a001
commit c503f105fb
+14
View File
@@ -1,5 +1,18 @@
'use strict';
/**
* @typedef DistributableRaw
* @prop {String} name
* @prop {String} version
* @prop {Boolean} lts
* @prop {String} [channel]
* @prop {String} date
* @prop {String} os
* @prop {String} arch
* @prop {String} ext
* @prop {String} download
*/
let GitHubish = module.exports;
/**
@@ -66,6 +79,7 @@ GitHubish.getDistributables = async function ({
}
let all = {
/** @type {Array<DistributableRaw>} */
releases: [],
// todo make this ':baseurl' + ':releasename'
download: '',