From 6116ada2fdfb5932e100bcf5ad1f14f129b57be5 Mon Sep 17 00:00:00 2001 From: mattmcw Date: Sun, 19 Feb 2023 00:55:17 -0500 Subject: [PATCH] Getting a new error when compiling delay library. Attempt to stop autogenerating d.ts files. src/delay/index.ts:11:10 - error TS2384: Overload signatures must all be ambient or non-ambient. --- app/lib/delay/index.d.ts | 8 -------- app/tsconfig.json | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/app/lib/delay/index.d.ts b/app/lib/delay/index.d.ts index 62d586e..e69de29 100644 --- a/app/lib/delay/index.d.ts +++ b/app/lib/delay/index.d.ts @@ -1,8 +0,0 @@ -/** - * Delay in an async/await function - * - * @param {integer} ms Milliseconds to delay for - * - * @returns {Promise} Promise to resolve after timeout - **/ -declare function delay(ms: number): Promise; diff --git a/app/tsconfig.json b/app/tsconfig.json index 0f7945c..593b696 100644 --- a/app/tsconfig.json +++ b/app/tsconfig.json @@ -4,6 +4,7 @@ "esModuleInterop": true, "target": "ES2016", "noImplicitAny": true, + "declaration": false, "moduleResolution": "node", "sourceMap": true, "removeComments" : false,