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.
This commit is contained in:
Matt McWilliams 2023-02-19 00:55:17 -05:00
parent d7baa4d17b
commit 6116ada2fd
2 changed files with 1 additions and 8 deletions

View File

@ -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<unknown>;

View File

@ -4,6 +4,7 @@
"esModuleInterop": true, "esModuleInterop": true,
"target": "ES2016", "target": "ES2016",
"noImplicitAny": true, "noImplicitAny": true,
"declaration": false,
"moduleResolution": "node", "moduleResolution": "node",
"sourceMap": true, "sourceMap": true,
"removeComments" : false, "removeComments" : false,