Support universal modules for SAT (#11632)

This commit is contained in:
Erkie
2016-09-30 21:57:58 +09:00
committed by Masahiro Wakame
parent 7f1ea1f53f
commit 2c65d5ca72
2 changed files with 9 additions and 2 deletions
+5 -2
View File
@@ -1,4 +1,7 @@
/// <reference path="sat.d.ts" />
import SAT = require("sat");
class SatTest{
public vectorTest(){
let v1: SAT.Vector = new SAT.Vector(10, 10);
@@ -15,9 +18,9 @@ class SatTest{
console.log("perp: v3 - " + v3.x.toString() + v3.y.toString());
}
}
let test = new SatTest;
test.vectorTest();
test.vectorTest();
+4
View File
@@ -140,3 +140,7 @@ declare namespace SAT {
export function testPolygonPolygon(a: Polygon, b: Polygon, response?: Response): boolean;
}
declare module "sat" {
export = SAT;
}