TypeScript Version: 3.4.1
Search Terms: lib.dom.d.ts
Code
// A *self-contained* demonstration of the problem follows...
// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.
Expected behavior:
Based on https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray, some of MimeTypeArray properties should return MimeType interface instead of Plugin interface.
interface MimeTypeArray {
readonly length: number;
item(index: number): MimeType;
namedItem(type: string): MimeType;
[index: number]: MimeType;
}
Actual behavior:
Some of MimeTypeArray properties return Plugin interface.
interface MimeTypeArray {
readonly length: number;
item(index: number): Plugin;
namedItem(type: string): Plugin;
[index: number]: Plugin;
}
Playground Link:
Related Issues:
I'm surprised that the typo has been around for four years since ad449ce0fae354df03e97e7e8507b9e4f1880001.
TypeScript Version: 3.4.1
Search Terms: lib.dom.d.ts
Code
Expected behavior:
Based on https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray, some of
MimeTypeArrayproperties should returnMimeTypeinterface instead ofPlugininterface.Actual behavior:
Some of
MimeTypeArrayproperties returnPlugininterface.Playground Link:
Related Issues:
I'm surprised that the typo has been around for four years since
ad449ce0fae354df03e97e7e8507b9e4f1880001.