Skip to content

Commit 05ac05f

Browse files
committed
Remove DeviceLightEvent
1 parent 7b2b832 commit 05ac05f

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

baselines/dom.generated.d.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,6 @@ interface DelayOptions extends AudioNodeOptions {
358358
maxDelayTime?: number;
359359
}
360360

361-
interface DeviceLightEventInit extends EventInit {
362-
value?: number;
363-
}
364-
365361
interface DeviceMotionEventAccelerationInit {
366362
x?: number | null;
367363
y?: number | null;
@@ -4296,16 +4292,6 @@ declare var DeviceAcceleration: {
42964292
new(): DeviceAcceleration;
42974293
};
42984294

4299-
/** The DeviceLightEvent provides web developers with information from photo sensors or similiar detectors about ambient light levels near the device. For example this may be useful to adjust the screen's brightness based on the current ambient light level in order to save energy or provide better readability. */
4300-
interface DeviceLightEvent extends Event {
4301-
readonly value: number;
4302-
}
4303-
4304-
declare var DeviceLightEvent: {
4305-
prototype: DeviceLightEvent;
4306-
new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
4307-
};
4308-
43094295
/** The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. */
43104296
interface DeviceMotionEvent extends Event {
43114297
readonly acceleration: DeviceMotionEventAcceleration | null;
@@ -4640,7 +4626,6 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
46404626
createEvent(eventInterface: "CloseEvent"): CloseEvent;
46414627
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
46424628
createEvent(eventInterface: "CustomEvent"): CustomEvent;
4643-
createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;
46444629
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
46454630
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
46464631
createEvent(eventInterface: "DragEvent"): DragEvent;
@@ -4885,7 +4870,6 @@ interface DocumentEvent {
48854870
createEvent(eventInterface: "CloseEvent"): CloseEvent;
48864871
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
48874872
createEvent(eventInterface: "CustomEvent"): CustomEvent;
4888-
createEvent(eventInterface: "DeviceLightEvent"): DeviceLightEvent;
48894873
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
48904874
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
48914875
createEvent(eventInterface: "DragEvent"): DragEvent;
@@ -18216,7 +18200,6 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
1821618200
"compassneedscalibration": Event;
1821718201
"contextmenu": MouseEvent;
1821818202
"dblclick": MouseEvent;
18219-
"devicelight": DeviceLightEvent;
1822018203
"devicemotion": DeviceMotionEvent;
1822118204
"deviceorientation": DeviceOrientationEvent;
1822218205
"deviceorientationabsolute": DeviceOrientationEvent;
@@ -18313,7 +18296,6 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
1831318296
readonly navigator: Navigator;
1831418297
offscreenBuffering: string | boolean;
1831518298
oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;
18316-
ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;
1831718299
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
1831818300
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
1831918301
ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
@@ -19334,7 +19316,6 @@ declare const name: void;
1933419316
declare var navigator: Navigator;
1933519317
declare var offscreenBuffering: string | boolean;
1933619318
declare var oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;
19337-
declare var ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;
1933819319
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
1933919320
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
1934019321
declare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;

inputfiles/removedTypes.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@
195195
}
196196
}
197197
},
198+
"DeviceLightEvent": null,
198199
"ElementInternals": null,
199200
"FederatedCredential": null,
200201
"FormDataEvent": null,
@@ -461,6 +462,7 @@
461462
"crypto": null,
462463
"isSecureContext": null,
463464
"msCredentials": null,
465+
"ondevicelight": null,
464466
"onmsgesturechange": null,
465467
"onmsgesturedoubletap": null,
466468
"onmsgestureend": null,
@@ -492,6 +494,11 @@
492494
"requestAnimationFrame": null
493495
}
494496
},
497+
"events": {
498+
"event": [
499+
"devicelight"
500+
]
501+
},
495502
"implements": [
496503
"GlobalFetch",
497504
"IDBEnvironment",

0 commit comments

Comments
 (0)