archematics/etc/deps/x_ite.d.ts
Glen Whitney 6bcec494e2 chore: Check types.
Enabling type checking involves a full rearrangement of the
  build process, as well as supplying types for some of the
  packages. The X_ITE types are still a work in progress, but
  they are enough for this initial state of the project to
  compile and run.

  Resolves #14.
2023-09-05 23:20:17 -07:00

17 lines
484 B
TypeScript

declare module 'https://create3000.github.io/code/x_ite/latest/x_ite.mjs' {
const x3d: X3D;
export default x3d;
export interface X3D {
createBrowser(): HTMLElement;
getBrowser(canvas: HTMLElement): X3DBrowser;
}
export interface X3DBrowser {
createX3DFromString(x3dSyntax: string): Promise<X3DScene>;
replaceWorld(scene: X3DScene): Promise<void>;
}
export interface X3DScene {
removeExportedNode(exportedName: string): void;
}
}