Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed Jul 30, 2023
1 parent 7e9bedb commit 41f1454
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion types/three/examples/jsm/webxr/XREstimatedLight.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import {
WebGLRenderer,
Object3DEventMap,
EmptyEvent,
EventListener,
BaseEvent,
EventTypeValidator,
} from '../../../src/Three.js';

export class SessionLightProbe {
Expand Down Expand Up @@ -36,12 +39,33 @@ interface XREstimatedLightEventMap extends Object3DEventMap {
estimationend: EmptyEvent;
}

export class XREstimatedLight extends Group<XREstimatedLightEventMap> {
export class XREstimatedLight extends Group {
lightProbe: LightProbe;
directionalLight: DirectionalLight;
environment: Texture;

constructor(renderer: WebGLRenderer, environmentEstimation?: boolean);

addEventListener<T extends Extract<keyof XREstimatedLightEventMap, string>>(
type: T,
listener: EventListener<XREstimatedLightEventMap[T], T, this>,
): void;
addEventListener<T extends string>(type: T, listener: EventListener<{}, T, this>): void;

hasEventListener<T extends Extract<keyof XREstimatedLightEventMap, string>>(
type: T,
listener: EventListener<XREstimatedLightEventMap[T], T, this>,
): boolean;
hasEventListener<T extends string>(type: T, listener: EventListener<{}, T, this>): boolean;

removeEventListener<E extends Extract<keyof XREstimatedLightEventMap, string>>(
type: E,
listener: EventListener<XREstimatedLightEventMap[E], E, this>,
): void;
removeEventListener<E extends string>(type: E, listener: EventListener<{}, E, this>): void;

dispatchEvent<E extends BaseEvent, Map extends XREstimatedLightEventMap>(event: EventTypeValidator<E, Map>): void;
dispatchEvent<E extends BaseEvent, Map extends Object3DEventMap>(event: EventTypeValidator<E, Map>): void;
}

export {};

0 comments on commit 41f1454

Please sign in to comment.