optional type specification

This commit is contained in:
2022-05-26 21:00:15 -05:00
parent c4c6e9d2e9
commit 2d13451461

View File

@@ -23,7 +23,7 @@ export class StorageBase {
return this.val.get()
}
getJson<T = JSONObject>(defaultValue?: T): T {
getJson<T = JSONObject>(defaultValue: T): T {
try {
let val = JSON.parse(this.val.get())