Skip to content

Commit

Permalink
Update index.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruesc committed Mar 2, 2024
1 parent 9e85fa2 commit cda2304
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ declare module "postprocessing" {
Data3DTexture
} from "three";

import { Timer as Timer3 } from "three/examples/jsm/misc/Timer.js";

/**
* A color channel enumeration.
*
Expand Down Expand Up @@ -4783,7 +4785,7 @@ declare module "postprocessing" {
*
* @return {Timer} The timer.
*/
getTimer(): Timer;
getTimer(): Timer3;
/**
* Returns the renderer.
*
Expand Down Expand Up @@ -4959,19 +4961,13 @@ declare module "postprocessing" {
*
* @type {Number}
*/
get delta(): number;
/**
* The fixed delta time in seconds.
*
* @type {Number}
*/
get fixedDelta(): number;
getDelta(): number;
/**
* The elapsed time in seconds.
*
* @type {Number}
*/
get elapsed(): number;
getElapsed(): number;

}

Expand Down Expand Up @@ -5088,11 +5084,11 @@ declare module "postprocessing" {
*
* Original implementation by Michael Herzog (Mugen87).
*
* @experimental Temporary substitute for {@link https://github.com/mrdoob/three.js/pull/17912}
* @deprecated Use `three/addons/misc/Timer.js` instead.
* @implements {Disposable}
* @implements {EventListenerObject}
*/
export class Timer implements ImmutableTimer, Disposable, EventListenerObject {
export class Timer implements Disposable, EventListenerObject {
handleEvent(object: Event): void;

/**
Expand Down

0 comments on commit cda2304

Please sign in to comment.