Skip to content

Commit 656b958

Browse files
committed
remove non-standard [un]lockOrientation
1 parent 2b23429 commit 656b958

File tree

3 files changed

+9
-29
lines changed

3 files changed

+9
-29
lines changed

baselines/dom.generated.d.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13765,10 +13765,6 @@ interface Screen extends EventTarget {
1376513765
readonly systemXDPI: number;
1376613766
readonly systemYDPI: number;
1376713767
readonly width: number;
13768-
lockOrientation(orientations: OrientationLockType | OrientationLockType[]): boolean;
13769-
msLockOrientation(orientations: string | string[]): boolean;
13770-
msUnlockOrientation(): void;
13771-
unlockOrientation(): void;
1377213768
addEventListener<K extends keyof ScreenEventMap>(type: K, listener: (this: Screen, ev: ScreenEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1377313769
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1377413770
removeEventListener<K extends keyof ScreenEventMap>(type: K, listener: (this: Screen, ev: ScreenEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -17165,7 +17161,6 @@ type ScrollLogicalPosition = "start" | "center" | "end" | "nearest";
1716517161
type MouseWheelEvent = WheelEvent;
1716617162
type ScrollRestoration = "auto" | "manual";
1716717163
type InsertPosition = "beforebegin" | "afterbegin" | "beforeend" | "afterend";
17168-
type OrientationLockType = "any" | "natural" | "portrait" | "landscape" | "portrait-primary" | "portrait-secondary" | "landscape-primary"| "landscape-secondary";
1716917164
type IDBValidKey = number | string | Date | BufferSource | IDBArrayKey;
1717017165
type AlgorithmIdentifier = string | Algorithm;
1717117166
type MutationRecordType = "attributes" | "characterData" | "childList";

inputfiles/addedTypes.json

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,25 +2123,6 @@
21232123
},
21242124
"no-interface-object": "1"
21252125
},
2126-
"Screen": {
2127-
"name": "Screen",
2128-
"methods": {
2129-
"method": {
2130-
"lockOrientation": {
2131-
"name": "lockOrientation",
2132-
"override-signatures": [
2133-
"lockOrientation(orientations: OrientationLockType | OrientationLockType[]): boolean"
2134-
]
2135-
},
2136-
"unlockOrientation": {
2137-
"name": "unlockOrientation",
2138-
"override-signatures": [
2139-
"unlockOrientation(): void"
2140-
]
2141-
}
2142-
}
2143-
}
2144-
},
21452126
"HTMLTableDataCellElement": {
21462127
"name": "HTMLTableDataCellElement",
21472128
"extends": "HTMLTableCellElement",
@@ -2384,10 +2365,6 @@
23842365
"override-type": "Headers | string[][] | Record<string, string>",
23852366
"new-type": "HeadersInit"
23862367
},
2387-
{
2388-
"override-type": "\"any\" | \"natural\" | \"portrait\" | \"landscape\" | \"portrait-primary\" | \"portrait-secondary\" | \"landscape-primary\"| \"landscape-secondary\"",
2389-
"new-type": "OrientationLockType"
2390-
},
23912368
{
23922369
"override-type": "number | string | Date | BufferSource | IDBArrayKey",
23932370
"new-type": "IDBValidKey"

inputfiles/removedTypes.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@
4040
},
4141
"MediaQueryListListener": null,
4242
"MSStreamReader": null,
43+
"Screen": {
44+
"methods": {
45+
"method": {
46+
"msLockOrientation": null,
47+
"msUnlockOrientation": null
48+
}
49+
}
50+
},
4351
"StorageEvent": {
4452
"methods": {
4553
"method": {
@@ -93,4 +101,4 @@
93101
"new-type": "ArrayBufferView"
94102
}]
95103
}
96-
}
104+
}

0 commit comments

Comments
 (0)