Skip to content

Commit

Permalink
fix jsdoc typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Jun 15, 2023
1 parent 7327f7f commit c2c93f6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,16 @@ const ArchivedVersionsDropdownItems = Object.entries(VersionsArchived).splice(
5,
);

function getLastVersion() {
const isPrerelease = (version) =>
/** @param {string} version */
function isPrerelease(version) {
return (
version.includes('alpha') ||
version.includes('beta') ||
version.includes('rc');
version.includes('rc')
);
}

function getLastVersion() {
const firstStableVersion = versions.find((version) => !isPrerelease(version));
return firstStableVersion ?? versions[0];
}
Expand Down

0 comments on commit c2c93f6

Please sign in to comment.