From 386285d48c8f4c6cd1c169d71a884029293a4f1f Mon Sep 17 00:00:00 2001 From: mattmcw Date: Sun, 6 Aug 2023 14:58:26 -0400 Subject: [PATCH] Definition file that prevents compiler warnings on some platforms. Still unexplained because tsc is installed local to the project. --- app/data/cfg.json | 2 +- app/package-lock.json | 2 +- app/package.json | 2 +- data/cfg.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- processing/mcopy/cfg.json | 2 +- src/arduino/index.d.ts | 8 ++++++++ 8 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 src/arduino/index.d.ts diff --git a/app/data/cfg.json b/app/data/cfg.json index 83a20d7..167d9c8 100644 --- a/app/data/cfg.json +++ b/app/data/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.7.24", + "version": "1.7.25", "ext_port": 1111, "profiles": { "mcopy": { diff --git a/app/package-lock.json b/app/package-lock.json index ab51934..d807c86 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -1,6 +1,6 @@ { "name": "mcopy-app", - "version": "1.7.24", + "version": "1.7.25", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/app/package.json b/app/package.json index 0634f2f..d38356a 100644 --- a/app/package.json +++ b/app/package.json @@ -1,6 +1,6 @@ { "name": "mcopy-app", - "version": "1.7.24", + "version": "1.7.25", "description": "GUI for the mcopy small gauge film optical printer platform", "main": "main.js", "scripts": { diff --git a/data/cfg.json b/data/cfg.json index 83a20d7..167d9c8 100644 --- a/data/cfg.json +++ b/data/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.7.24", + "version": "1.7.25", "ext_port": 1111, "profiles": { "mcopy": { diff --git a/package-lock.json b/package-lock.json index 8597cc2..365979c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mcopy", - "version": "1.7.24", + "version": "1.7.25", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "mcopy", - "version": "1.7.24", + "version": "1.7.25", "license": "MIT", "dependencies": { "arduino": "file:app/lib/arduino", diff --git a/package.json b/package.json index ea25740..2805049 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mcopy", - "version": "1.7.24", + "version": "1.7.25", "description": "Small gauge film optical printer platform", "main": "build.js", "directories": { diff --git a/processing/mcopy/cfg.json b/processing/mcopy/cfg.json index 83a20d7..167d9c8 100644 --- a/processing/mcopy/cfg.json +++ b/processing/mcopy/cfg.json @@ -1,5 +1,5 @@ { - "version": "1.7.24", + "version": "1.7.25", "ext_port": 1111, "profiles": { "mcopy": { diff --git a/src/arduino/index.d.ts b/src/arduino/index.d.ts new file mode 100644 index 0000000..b20a2da --- /dev/null +++ b/src/arduino/index.d.ts @@ -0,0 +1,8 @@ +/** + * 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; \ No newline at end of file