-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA 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 TypeScriptHelp WantedYou can do thisYou can do this
Milestone
Description
TypeScript Version: 3.1.0-dev.20180813
Search Terms: navigator.mimeTypes
Code
http://www.typescriptlang.org/play/index.html#src=var%20a%3A%20Plugin%20%3D%20navigator.mimeTypes%5B0%5D%0D%0Avar%20b%3A%20MimeType%20%3D%20a%5B0%5D%3B%0D%0A%0D%0Aconsole.log(b.type)Expected behavior:
I expected MimeTypeArray object which contains a list of MimeType objects representing the MIME types recognized by the browser. This one is right in TypeScript.
Reference: NavigatorPlugins.mimeTypes - Web APIs | MDN
When I get an array item in the navigator.mimeTypes, such as navigator.mimeTypes[0]. TypeScript should reference to MimeType, but it reference to a Plugin type and then Plugin's reference is also different from MDN docs.
Actual behavior:
Related Issues:
N/A
rocfatcat, sundy001, madeinfree, FoxWuGit and ErythroME
Metadata
Metadata
Assignees
Labels
BugA 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 TypeScriptHelp WantedYou can do thisYou can do this



