Hello there,
I'm having troubles augmenting definitions for the "three" module.
I'd like to add methods and attributes on THREE.Object3D. I've tried many variations of the following example, but none of them seem to work:
augment.d.ts:
/// <reference types="three" />
declare namespace THREE {
export interface Object3D {
addBehaviour (klass: any): any;
getEntity (): any;
}
}
Usage:

Anyone has experience augmenting THREE definitions on TypeScript?
Cheers!
Did you figure this out?
@sidroopdaska I've found some TypeScript open issues about this. Unfortunately, it's not possible to do this currently because of the way the type definitions are written for three.js.
More info:
Most helpful comment
@sidroopdaska I've found some TypeScript open issues about this. Unfortunately, it's not possible to do this currently because of the way the type definitions are written for three.js.
More info: