summaryrefslogtreecommitdiffstats
path: root/src/model/Direction.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/Direction.ts')
-rw-r--r--src/model/Direction.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/model/Direction.ts b/src/model/Direction.ts
index a0cf45d..7f92588 100644
--- a/src/model/Direction.ts
+++ b/src/model/Direction.ts
@@ -8,6 +8,8 @@ export enum Direction {
West
};
-export function reverse(r: Direction): Direction { return (r+2) % 4; }
+export module Direction {
+ export function reverse(r: Direction): Direction { return (r+2) % 4; }
+}
export default Direction;