Skip to content

Commit 8dcc4c5

Browse files
committed
Storage.readJSON: typescript, permit 1 instead of true/false for second parameter
1 parent d244795 commit 8dcc4c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jswrap_storage.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ JsVar *jswrap_storage_read(JsVar *name, int offset, int length) {
142142
["noExceptions","bool","If true and the JSON is not valid, just return `undefined` - otherwise an `Exception` is thrown"]
143143
],
144144
"return" : ["JsVar","An object containing parsed JSON from the file, or undefined"],
145-
"typescript" : "readJSON(name: string, noExceptions: boolean): any;"
145+
"typescript" : "readJSON(name: string, noExceptions: ShortBoolean): any;"
146146
}
147147
Read a file from the flash storage area that has been written with
148148
`require("Storage").write(...)`, and parse JSON in it into a JavaScript object.

0 commit comments

Comments
 (0)