mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-13 17:17:28 +02:00
refactor: enable a few TS flags (#6852)
* refactor: enable a few TS flags * refactor * revert to working version * fix * better * change
This commit is contained in:
parent
9f925a42bf
commit
4db0c620de
71 changed files with 210 additions and 174 deletions
|
@ -464,11 +464,11 @@ Please set the docs "sidebarPath" field in your config file to:
|
|||
// "last version" is not a very good concept nor api surface
|
||||
function getDefaultLastVersionName(versionNames: string[]) {
|
||||
if (versionNames.length === 1) {
|
||||
return versionNames[0];
|
||||
return versionNames[0]!;
|
||||
}
|
||||
return versionNames.filter(
|
||||
(versionName) => versionName !== CURRENT_VERSION_NAME,
|
||||
)[0];
|
||||
)[0]!;
|
||||
}
|
||||
|
||||
function checkVersionsOptions(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue