You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: baselines/dom.generated.d.ts
+49-26Lines changed: 49 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -10631,9 +10631,21 @@ declare var MessagePort: {
10631
10631
10632
10632
/** Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object. */
10633
10633
interface MimeType {
10634
+
/**
10635
+
* Returns the MIME type's description.
10636
+
*/
10634
10637
readonly description: string;
10638
+
/**
10639
+
* Returns the Plugin object that implements this MIME type.
10640
+
*/
10635
10641
readonly enabledPlugin: Plugin;
10642
+
/**
10643
+
* Returns the MIME type's typical file extensions, in a comma-separated list.
10644
+
*/
10636
10645
readonly suffixes: string;
10646
+
/**
10647
+
* Returns the MIME type.
10648
+
*/
10637
10649
readonly type: string;
10638
10650
}
10639
10651
@@ -10645,9 +10657,9 @@ declare var MimeType: {
10645
10657
/** Returns an array of MimeType instances, each of which contains information about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes. */
10646
10658
interface MimeTypeArray {
10647
10659
readonly length: number;
10648
-
item(index: number): Plugin;
10649
-
namedItem(type: string): Plugin;
10650
-
[index: number]: Plugin;
10660
+
item(index: number): MimeType | null;
10661
+
namedItem(name: string): MimeType | null;
10662
+
[index: number]: MimeType;
10651
10663
}
10652
10664
10653
10665
declare var MimeTypeArray: {
@@ -10805,30 +10817,23 @@ declare var NavigationPreloadManager: {
10805
10817
};
10806
10818
10807
10819
/** The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities. */
/** Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way. */
@@ -11839,13 +11849,27 @@ declare var Permissions: {
11839
11849
11840
11850
/** Provides information about a browser plugin. */
11841
11851
interface Plugin {
11852
+
/**
11853
+
* Returns the plugin's description.
11854
+
*/
11842
11855
readonly description: string;
11856
+
/**
11857
+
* Returns the plugin library's filename, if applicable on the current platform.
11858
+
*/
11843
11859
readonly filename: string;
11860
+
/**
11861
+
* Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
11862
+
*/
11844
11863
readonly length: number;
11864
+
/**
11865
+
* Returns the plugin's name.
11866
+
*/
11845
11867
readonly name: string;
11846
-
readonly version: string;
11847
-
item(index: number): MimeType;
11848
-
namedItem(type: string): MimeType;
11868
+
/**
11869
+
* Returns the specified MimeType object.
11870
+
*/
11871
+
item(index: number): MimeType | null;
11872
+
namedItem(name: string): MimeType | null;
11849
11873
[index: number]: MimeType;
11850
11874
}
11851
11875
@@ -11857,8 +11881,8 @@ declare var Plugin: {
11857
11881
/** Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods. */
0 commit comments