diff --git a/src/index.d.ts b/src/index.d.ts index d7af77d8..e568787e 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -27,9 +27,8 @@ type PointerEventsFilterFn = (object: Object3D, data?: object) => boolean; // don't surface these internal props from inner ThreeGlobe type ExcludedInnerProps = 'setPointOfView' | 'pauseAnimation' | 'resumeAnimation'; -export declare class GlobeGeneric +export interface GlobeGenericInstance extends Omit, ExcludedInnerProps> { - constructor(element: HTMLElement, configOptions?: ConfigOptions); resetProps(): ChainableInstance; _destructor(): void; @@ -126,6 +125,10 @@ export declare class GlobeGeneric toGlobeCoords(x: number, y: number): { lat: number, lng: number} | null; } -declare class Globe extends GlobeGeneric {} +export type GlobeInstance = GlobeGenericInstance; + +interface Globe { + new(element: HTMLElement, configOptions?: ConfigOptions): GlobeInstance; +} export default Globe;