From c9e817012a507b3545488b7f1cd8a76b6c20c21e Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sun, 25 Feb 2024 22:22:45 +0100 Subject: infra(unicorn): prefer-top-level-await (#2680) --- test/scripts/apidoc/signature.debug.ts | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'test/scripts') diff --git a/test/scripts/apidoc/signature.debug.ts b/test/scripts/apidoc/signature.debug.ts index 9e99e8c6..704b629c 100644 --- a/test/scripts/apidoc/signature.debug.ts +++ b/test/scripts/apidoc/signature.debug.ts @@ -8,13 +8,10 @@ import { loadExampleMethods } from './utils'; /* Run with `pnpm tsx test/scripts/apidoc/signature.debug.ts` */ -initMarkdownRenderer() - .then(async () => { - const methods = await loadExampleMethods(); - for (const [name, method] of Object.entries(methods)) { - console.log('Analyzing:', name); - const result = await analyzeSignature(method, '', method.name); - console.log('Result:', result); - } - }) - .catch(console.error); +await initMarkdownRenderer(); +const methods = await loadExampleMethods(); +for (const [name, method] of Object.entries(methods)) { + console.log('Analyzing:', name); + const result = await analyzeSignature(method, '', method.name); + console.log('Result:', result); +} -- cgit v1.2.3