From 6b0cecae887cb22729e005e4268401b7c625a42a Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sun, 6 Aug 2023 14:24:10 +0200 Subject: chore(deps): update dependency prettier to v3 (#2260) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT --- scripts/apidoc/apiDocsWriter.ts | 22 +++--- scripts/apidoc/fakerClass.ts | 18 +++-- scripts/apidoc/fakerUtilities.ts | 10 +-- scripts/apidoc/format.ts | 6 +- scripts/apidoc/generate.ts | 12 ++-- scripts/apidoc/moduleMethods.ts | 25 ++++--- scripts/apidoc/signature.ts | 113 ++++++++++++++++------------- scripts/generateLocales.ts | 151 +++++++++++++++++++++------------------ 8 files changed, 201 insertions(+), 156 deletions(-) (limited to 'scripts') diff --git a/scripts/apidoc/apiDocsWriter.ts b/scripts/apidoc/apiDocsWriter.ts index 8bb9df5c..fe8f48c5 100644 --- a/scripts/apidoc/apiDocsWriter.ts +++ b/scripts/apidoc/apiDocsWriter.ts @@ -40,14 +40,14 @@ editLink: false * @param deprecated The deprecation message. * @param methods The methods of the module. */ -export function writeApiDocsModule( +export async function writeApiDocsModule( moduleName: string, lowerModuleName: string, comment: string, deprecated: string | undefined, methods: Method[] -): ModuleSummary { - writeApiDocsModulePage( +): Promise { + await writeApiDocsModulePage( moduleName, lowerModuleName, comment, @@ -85,13 +85,13 @@ export function writeApiDocsModule( * @param comment The module comments. * @param methods The methods of the module. */ -function writeApiDocsModulePage( +async function writeApiDocsModulePage( moduleName: string, lowerModuleName: string, comment: string, deprecated: string | undefined, methods: Method[] -): void { +): Promise { // Write api docs page let content = `