Преглед на файлове

Merge pull request #15980 from Methuselah96/typescript-examples-jsm

Add TypeScript definitions for GLTFExporter
Mr.doob преди 6 години
родител
ревизия
d050e4073d
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  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;
+}