Files
DefinitelyTyped/types/drag-controls/index.d.ts
Nathan Shively-Sanders b2505fdf43 Fix webxr types for TS 5.0 beta (#64012)
* Fix webxr types for TS 5.0 beta

The types that webxr shims are now the precise literals instead of
`number`.

The new code won't succeed until tomorrow. See microsoft/TypeScript#52328

* Update minimum TS version for three

* Update minimum TS version of other dependents

* Remove OVR_multiview2 instead of updating it

then bump required TS version to 4.4 not 5.0
2023-01-23 10:03:29 -08:00

17 lines
581 B
TypeScript

// Type definitions for drag-controls 1.0
// Project: https://github.com/jbyte/three-dragcontrols#readme
// Definitions by: Matt Hawes <https://github.com/MGHawes>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 4.4
import * as THREE from 'three';
declare class DragControls extends THREE.EventDispatcher {
static install(library: { THREE: typeof THREE }): void;
constructor(objects: ReadonlyArray<THREE.Object3D>, camera: THREE.Camera, domElement: HTMLCanvasElement);
deactivate(): void;
}
export = DragControls;