Skip to content

Commit deb577d

Browse files
committed
fix(lint): fixed lint warning
1 parent 2f21535 commit deb577d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
`Const`**computeShadows**(`bounds`: [Bounds](interfaces/bounds.md), `walls`: [Segment2](interfaces/segment2.md)[], `light`: [Vec2](interfaces/vec2.md)): [Vec2](interfaces/vec2.md)[][]
2424

25-
*Defined in [computeShadows.ts:39](https://github.com/MD4/shadowed/blob/a52c63d/src/computeShadows.ts#L39)*
25+
*Defined in [computeShadows.ts:39](https://github.com/MD4/shadowed/blob/2f21535/src/computeShadows.ts#L39)*
2626

2727
Computes casted shadows by a light for a given set of walls within specified bounds.
2828

docs/interfaces/bounds.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121

2222
**bottomRight**: [Vec2](vec2.md)
2323

24-
*Defined in [entities.ts:8](https://github.com/MD4/shadowed/blob/a52c63d/src/entities.ts#L8)*
24+
*Defined in [entities.ts:8](https://github.com/MD4/shadowed/blob/2f21535/src/entities.ts#L8)*
2525

2626
___
2727

2828
### topLeft
2929

3030
**topLeft**: [Vec2](vec2.md)
3131

32-
*Defined in [entities.ts:7](https://github.com/MD4/shadowed/blob/a52c63d/src/entities.ts#L7)*
32+
*Defined in [entities.ts:7](https://github.com/MD4/shadowed/blob/2f21535/src/entities.ts#L7)*

docs/interfaces/segment2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121

2222
**a**: [Vec2](vec2.md)
2323

24-
*Defined in [entities.ts:12](https://github.com/MD4/shadowed/blob/a52c63d/src/entities.ts#L12)*
24+
*Defined in [entities.ts:12](https://github.com/MD4/shadowed/blob/2f21535/src/entities.ts#L12)*
2525

2626
___
2727

2828
### b
2929

3030
**b**: [Vec2](vec2.md)
3131

32-
*Defined in [entities.ts:13](https://github.com/MD4/shadowed/blob/a52c63d/src/entities.ts#L13)*
32+
*Defined in [entities.ts:13](https://github.com/MD4/shadowed/blob/2f21535/src/entities.ts#L13)*

docs/interfaces/vec2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121

2222
**x**: number
2323

24-
*Defined in [entities.ts:2](https://github.com/MD4/shadowed/blob/a52c63d/src/entities.ts#L2)*
24+
*Defined in [entities.ts:2](https://github.com/MD4/shadowed/blob/2f21535/src/entities.ts#L2)*
2525

2626
___
2727

2828
### y
2929

3030
**y**: number
3131

32-
*Defined in [entities.ts:3](https://github.com/MD4/shadowed/blob/a52c63d/src/entities.ts#L3)*
32+
*Defined in [entities.ts:3](https://github.com/MD4/shadowed/blob/2f21535/src/entities.ts#L3)*

src/boundsUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const getBoundsWalls = ({
4141
/**
4242
* @hidden
4343
*/
44-
export const isWallInBounds = (bounds: Bounds) => (wall: Segment2) =>
44+
export const isWallInBounds = (bounds: Bounds) => (wall: Segment2): boolean =>
4545
isInBounds(bounds, wall.a) ||
4646
isInBounds(bounds, wall.b) ||
4747
getBoundsWalls(bounds).some((boundsWall) =>

0 commit comments

Comments
 (0)