Skip to content

Commit

Permalink
make opt param optional
Browse files Browse the repository at this point in the history
  • Loading branch information
allmtz committed Jul 30, 2023
1 parent 9b0fef0 commit ad039aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utility/hex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ export class Hex {
*
* @deprecated Use new Trap(x, y, type, effects, own, opt, game)
*/
createTrap(type, effects, owner, opt): Trap {
createTrap(type, effects, owner, opt?): Trap {
return new Trap(this.x, this.y, type, effects, owner, opt, this.game);
}

Expand Down

0 comments on commit ad039aa

Please sign in to comment.