Repository navigation
Update StorageEvent interface #6295
Copy link
Copy link
Closed
microsoft/TypeScript-DOM-lib-generator
#48Labels
Breaking ChangeWould introduce errors in existing codeWould introduce errors in existing codeBugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
Milestone
Description
new StorageEvent(); // Uncaught TypeError: Illegal constructor(…)interface StorageEvent extends Event {
key: string;
newValue: any;
oldValue: any;
storageArea: Storage;
url: string;
initStorageEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, keyArg: string, oldValueArg: any, newValueArg: any, urlArg: string, storageAreaArg: Storage): void;
}
declare var StorageEvent: {
prototype: StorageEvent;
new(): StorageEvent;
}https://github.com/Microsoft/TypeScript/blob/master/lib/lib.dom.d.ts
[Constructor(DOMString type, optional StorageEventInit eventInitDict)]
interface StorageEvent : Event {
readonly attribute DOMString? key;
readonly attribute DOMString? oldValue;
readonly attribute DOMString? newValue;
readonly attribute DOMString url;
readonly attribute Storage? storageArea;
};
dictionary StorageEventInit : EventInit {
DOMString? key;
DOMString? oldValue;
DOMString? newValue;
DOMString url;
Storage? storageArea;
};
http://www.w3.org/TR/webstorage/#the-storage-event
- Constructor requires a first parameter.
- Constructor optional parameter type is dict.
- Require
StorageEventInitinterface. newValueandoldValueare string.StorageEventInitrequiresurlfield.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Breaking ChangeWould introduce errors in existing codeWould introduce errors in existing codeBugA bug in TypeScriptA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueGood First IssueWell scoped, documented and has the green lightWell scoped, documented and has the green lightHelp WantedYou can do thisYou can do this
Activity
DanielRosenwasser commentedon Dec 30, 2015
I think we'd be willing to take a PR on https://github.com/Microsoft/TSJS-lib-generator
falsandtru commentedon Dec 30, 2015
Okay.