Skip to content

Commit aee51e5

Browse files
committed
minor type correction
1 parent e6f508b commit aee51e5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

core/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ while (d!==undefined) {console.log(btoa(d));d=f.read(${CHUNKSIZE});}
526526
/**
527527
* Taking a standard semver type string, parse and convert to float
528528
* @param {string} version Version string eg. v1.2.3
529-
* @returns {float}
529+
* @returns {number}
530530
*/
531531
function versionToFloat(version) {
532532
return parseFloat(version.trim().replace("v","."));
@@ -632,7 +632,7 @@ while (d!==undefined) {console.log(btoa(d));d=f.read(${CHUNKSIZE});}
632632
/**
633633
* GET's a URL as a Binary file
634634
* @param {string} url
635-
* @param {(err: Error, data: ArrayBuffer) => void} callback
635+
* @param {(err: string, data?: ArrayBuffer) => void} callback
636636
*/
637637
function getBinaryURL(url, callback) {
638638
console.log("Downloading "+url);

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
// Change this to match your project
32
"include": ["index.js", "espruino.js"],
43
"compilerOptions": {
54
"allowJs": true,

0 commit comments

Comments
 (0)