Permalink
Browse files

Minor fixes to typings and readme files

  • Loading branch information...
Pelle Jacobs Pelle Jacobs
Pelle Jacobs authored and Pelle Jacobs committed Sep 10, 2016
1 parent a0fc747 commit de9a2d9165c62a3440d8278dd2d24a38347f864e
Showing with 4 additions and 4 deletions.
  1. +1 −1 README.md
  2. +3 −3 index.d.ts
View
@@ -68,7 +68,7 @@ easystar.enableSync();
Add condition that a tile is only accessible from certain directions
```javascript
easystar.setDirectionalCondition(x, y, ['top', 'left']) // only accessible from the top and left
easystar.setDirectionalCondition(x, y, [EasyStar.TOP, EasyStar.BOTTOM]) // only accessible from the top and left
easystar.removeAllDirectionalConditions() // unset all directional conditions
```
View
@@ -7,7 +7,7 @@ export const BOTTOM_LEFT: 'BOTTOM_LEFT'
export const LEFT: 'LEFT'
export const TOP_LEFT: 'TOP_LEFT'
type Direction = "TOP" | "TOP_RIGHT" | "RIGHT" | "BOTTOM_RIGHT" | "BOTTOM" | "BOTTOM_LEFT" | "LEFT" | "TOP_LEFT"
type Direction = 'TOP' | 'TOP_RIGHT' | 'RIGHT' | 'BOTTOM_RIGHT' | 'BOTTOM' | 'BOTTOM_LEFT' | 'LEFT' | 'TOP_LEFT'
export class js {
@@ -148,9 +148,9 @@ export class js {
*
* @param {Number} x The x value of the point.
* @param {Number} y The y value of the point.
* @param {Array.<String>} list of all the allowed directions from which the tile is accessible.
* @param {Array.<String>} allowedDirections A list of all the allowed directions from which the tile is accessible.
*
* eg. easystar.setDirectionalCondition(1, 1, ['top']): You can only access the tile by walking down onto it,
* eg. easystar.setDirectionalCondition(1, 1, ['TOP']): You can only access the tile by walking down onto it,
*/
setDirectionalCondition(x: number, y: number, allowedDirections: Direction[]): void

0 comments on commit de9a2d9

Please sign in to comment.