optional type specification
This commit is contained in:
@@ -23,7 +23,7 @@ export class StorageBase {
|
|||||||
return this.val.get()
|
return this.val.get()
|
||||||
}
|
}
|
||||||
|
|
||||||
getJson<T extends JSONObject>(): T {
|
getJson<T = JSONObject>(): T {
|
||||||
let val
|
let val
|
||||||
try {
|
try {
|
||||||
val = JSON.parse(this.val.get())
|
val = JSON.parse(this.val.get())
|
||||||
|
|||||||
Reference in New Issue
Block a user