瀏覽代碼

TS: Move Event definition to the right place.

Mugen87 5 年之前
父節點
當前提交
fb0ec320c8
共有 2 個文件被更改,包括 8 次插入7 次删除
  1. 8 1
      src/core/EventDispatcher.d.ts
  2. 0 6
      src/core/Face3.d.ts

+ 8 - 1
src/core/EventDispatcher.d.ts

@@ -1,4 +1,11 @@
-import { Event } from './Face3';
+/**
+ * Event object.
+ */
+export interface Event {
+	type: string;
+	target?: any;
+	[attachment: string]: any;
+}
 
 /**
  * JavaScript events for custom objects

+ 0 - 6
src/core/Face3.d.ts

@@ -1,12 +1,6 @@
 import { Vector3 } from './../math/Vector3';
 import { Color } from './../math/Color';
 
-export interface Event {
-	type: string;
-	target?: any;
-	[attachment: string]: any;
-}
-
 /**
  * Triangle face.
  *