Ver Fonte

Add TypeScript definitions for GLTFExporter

Nathan Bierema há 6 anos atrás
pai
commit
61b7e8c5af
1 ficheiros alterados com 7 adições e 0 exclusões
  1. 7 0
      examples/jsm/exporters/GLTFExporter.d.ts

+ 7 - 0
examples/jsm/exporters/GLTFExporter.d.ts

@@ -0,0 +1,7 @@
+import { Object3D } from '../../../src/Three';
+
+export class GLTFExporter {
+  constructor();
+
+  parse(input: Object3D, onCompleted: (gltf: object) => void, options: object): null;
+}