Skip to content

Commit

Permalink
Slightly better type
Browse files Browse the repository at this point in the history
  • Loading branch information
butzopower committed Jan 20, 2022
1 parent 6cd8340 commit eb659f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hexgrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class HexGrid<T = void> {
}

map<U>(mappingFunction: (x: Hex<T>) => U): HexGrid<U> {
const originalHex = (hex: Hex<unknown>) => {
const originalHex = (hex: Hex<U>) => {
return this.at(hex.x, hex.y);
}

Expand Down

0 comments on commit eb659f1

Please sign in to comment.