I'm facing a challenge in creating a d.ts
file for the given DOM feature.
Storage.prototype.setObject = function(key:string, value:any) {
this.setItem(key, JSON.stringify(value));
}
Storage.prototype.getObject = function(key:string) {
var value = this.getItem(key);
return value && JSON.parse(value);
}
What is the best way to enhance the default dom Storage definition type for this scenario?