瀏覽代碼

[ts][phaser] Fix wrong type definition.

Davide Tantillo 6 月之前
父節點
當前提交
67488d7c95
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-ts/spine-phaser/src/mixins.ts

+ 1 - 1
spine-ts/spine-phaser/src/mixins.ts

@@ -59,7 +59,7 @@ export function createMixin<
 	};
 }
 
-type ComputedSizeMixin = Mixin<Phaser.GameObjects.Components.Transform, Phaser.GameObjects.GameObject>;
+type ComputedSizeMixin = Mixin<Phaser.GameObjects.Components.ComputedSize, Phaser.GameObjects.GameObject>;
 export const ComputedSizeMixin: ComputedSizeMixin = createMixin<Phaser.GameObjects.Components.ComputedSize>(ComputedSize);
 
 type DepthMixin = Mixin<Phaser.GameObjects.Components.Depth, Phaser.GameObjects.GameObject>;