Skip to content

Commit d384b28

Browse files
ortasaschanaz
andauthored
Adds stylemedia back (#113)
* Add stylemedia * Update inputfiles/addedTypes.json Co-authored-by: Kagami Sascha Rosylight <[email protected]>
1 parent 1b8d3e1 commit d384b28

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

baselines/dom.generated.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14311,6 +14311,12 @@ declare var StorageManager: {
1431114311
new(): StorageManager;
1431214312
};
1431314313

14314+
/** @deprecated */
14315+
interface StyleMedia {
14316+
type: string;
14317+
matchMedium(mediaquery: string): boolean;
14318+
}
14319+
1431414320
/** A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface. */
1431514321
interface StyleSheet {
1431614322
disabled: boolean;

inputfiles/addedTypes.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,32 @@
616616
}
617617
}
618618
},
619+
// This is used in the React d.ts files, and not including
620+
// it would force an update for anyone using React.
621+
"StyleMedia": {
622+
"name": "StyleMedia",
623+
"exposed": "Window",
624+
"noInterfaceObject": true,
625+
"deprecated": true,
626+
"properties": {
627+
"property": {
628+
"type": {
629+
"name": "type",
630+
"type": "DOMString"
631+
}
632+
}
633+
},
634+
"methods": {
635+
"method": {
636+
"matchMedium": {
637+
"name": "matchMedium",
638+
"overrideSignatures": [
639+
"matchMedium(mediaquery: string): boolean"
640+
]
641+
}
642+
}
643+
}
644+
},
619645
"Navigator": {
620646
"name": "Navigator",
621647
"properties": {

0 commit comments

Comments
 (0)