From c503f105fbad1b20a6bc70fbc41735c0436508a3 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 12 Oct 2024 00:48:29 +0000 Subject: [PATCH] feat: add DistributableRaw type for Githubish release assets --- _common/githubish.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/_common/githubish.js b/_common/githubish.js index 685b1d8..ce305a1 100644 --- a/_common/githubish.js +++ b/_common/githubish.js @@ -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} */ releases: [], // todo make this ':baseurl' + ':releasename' download: '',