mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
Support universal modules for SAT (#11632)
This commit is contained in:
+5
-2
@@ -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();
|
||||
|
||||
Vendored
+4
@@ -140,3 +140,7 @@ declare namespace SAT {
|
||||
export function testPolygonPolygon(a: Polygon, b: Polygon, response?: Response): boolean;
|
||||
|
||||
}
|
||||
|
||||
declare module "sat" {
|
||||
export = SAT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user