Skip to content

Commit d30ce19

Browse files
committed
Remove DeviceLightEvent
1 parent 951d1df commit d30ce19

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

baselines/dom.generated.d.ts

-17
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,6 @@ interface DelayOptions extends AudioNodeOptions {
345345
maxDelayTime?: number;
346346
}
347347

348-
interface DeviceLightEventInit extends EventInit {
349-
value?: number;
350-
}
351-
352348
interface DeviceMotionEventAccelerationInit {
353349
x?: number | null;
354350
y?: number | null;
@@ -4291,16 +4287,6 @@ declare var DeviceAcceleration: {
42914287
new(): DeviceAcceleration;
42924288
};
42934289

4294-
/** 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. */
4295-
interface DeviceLightEvent extends Event {
4296-
readonly value: number;
4297-
}
4298-
4299-
declare var DeviceLightEvent: {
4300-
prototype: DeviceLightEvent;
4301-
new(typeArg: string, eventInitDict?: DeviceLightEventInit): DeviceLightEvent;
4302-
};
4303-
43044290
/** The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. */
43054291
interface DeviceMotionEvent extends Event {
43064292
readonly acceleration: DeviceMotionEventAcceleration | null;
@@ -18380,7 +18366,6 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
1838018366
"compassneedscalibration": Event;
1838118367
"contextmenu": MouseEvent;
1838218368
"dblclick": MouseEvent;
18383-
"devicelight": DeviceLightEvent;
1838418369
"devicemotion": DeviceMotionEvent;
1838518370
"deviceorientation": DeviceOrientationEvent;
1838618371
"deviceorientationabsolute": DeviceOrientationEvent;
@@ -18495,7 +18480,6 @@ interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandler
1849518480
readonly navigator: Navigator;
1849618481
offscreenBuffering: string | boolean;
1849718482
oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;
18498-
ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;
1849918483
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
1850018484
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
1850118485
ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
@@ -19535,7 +19519,6 @@ declare const name: void;
1953519519
declare var navigator: Navigator;
1953619520
declare var offscreenBuffering: string | boolean;
1953719521
declare var oncompassneedscalibration: ((this: Window, ev: Event) => any) | null;
19538-
declare var ondevicelight: ((this: Window, ev: DeviceLightEvent) => any) | null;
1953919522
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
1954019523
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
1954119524
declare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;

inputfiles/removedTypes.json

+2
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,
@@ -359,6 +360,7 @@
359360
"crypto": null,
360361
"isSecureContext": null,
361362
"msCredentials": null,
363+
"ondevicelight": null,
362364
"ontouchcancel": null,
363365
"ontouchend": null,
364366
"ontouchmove": null,

0 commit comments

Comments
 (0)