From 41f1454bd3fc61381f56ce854414970aeed1f3a0 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Sun, 30 Jul 2023 17:46:14 -0400 Subject: [PATCH] Fix --- .../examples/jsm/webxr/XREstimatedLight.d.ts | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/types/three/examples/jsm/webxr/XREstimatedLight.d.ts b/types/three/examples/jsm/webxr/XREstimatedLight.d.ts index 0aa23f722..7dd85d565 100644 --- a/types/three/examples/jsm/webxr/XREstimatedLight.d.ts +++ b/types/three/examples/jsm/webxr/XREstimatedLight.d.ts @@ -6,6 +6,9 @@ import { WebGLRenderer, Object3DEventMap, EmptyEvent, + EventListener, + BaseEvent, + EventTypeValidator, } from '../../../src/Three.js'; export class SessionLightProbe { @@ -36,12 +39,33 @@ interface XREstimatedLightEventMap extends Object3DEventMap { estimationend: EmptyEvent; } -export class XREstimatedLight extends Group { +export class XREstimatedLight extends Group { lightProbe: LightProbe; directionalLight: DirectionalLight; environment: Texture; constructor(renderer: WebGLRenderer, environmentEstimation?: boolean); + + addEventListener>( + type: T, + listener: EventListener, + ): void; + addEventListener(type: T, listener: EventListener<{}, T, this>): void; + + hasEventListener>( + type: T, + listener: EventListener, + ): boolean; + hasEventListener(type: T, listener: EventListener<{}, T, this>): boolean; + + removeEventListener>( + type: E, + listener: EventListener, + ): void; + removeEventListener(type: E, listener: EventListener<{}, E, this>): void; + + dispatchEvent(event: EventTypeValidator): void; + dispatchEvent(event: EventTypeValidator): void; } export {};