mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-23 03:29:11 +02:00
refactor: reduce number of leaked anys (#7465)
This commit is contained in:
parent
6e62bba30f
commit
89b0fff128
39 changed files with 121 additions and 89 deletions
|
@ -95,7 +95,7 @@ async function readVersionsFile(
|
|||
): Promise<string[] | null> {
|
||||
const versionsFilePath = getVersionsFilePath(siteDir, pluginId);
|
||||
if (await fs.pathExists(versionsFilePath)) {
|
||||
const content = await fs.readJSON(versionsFilePath);
|
||||
const content: unknown = await fs.readJSON(versionsFilePath);
|
||||
validateVersionNames(content);
|
||||
return content;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue