-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
QuestionAn issue which isn't directly actionable in codeAn issue which isn't directly actionable in code
Description
The MutationObserver related declarations are missing from the lib.d.ts
file. Since this API is not browser specific I would expect the declarations to exist (as it happens with FileReader for example).
TypeScript Version: 2.0.3
Code
if( window && window.MutationObserver )
{
...
}
Expected behavior:
To not arise an error.
Actual behavior:
Error : Property MutationObserver
does not exist on type Window
I "solved" it by using the window["MutationObserver"]
syntax. If that is an actual bug/issue I can provide a PR.
MeirionHughes
Metadata
Metadata
Assignees
Labels
QuestionAn issue which isn't directly actionable in codeAn issue which isn't directly actionable in code