Skip to content

Commit

Permalink
refactor(grid-iterators): update diagonalEnds2d() opts
Browse files Browse the repository at this point in the history
- make `all` optional
  • Loading branch information
postspectacular committed Mar 25, 2023
1 parent 75d3445 commit d14458a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grid-iterators/src/diagonal-ends.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { __opts } from "./utils.js";
*
* @param opts -
*/
export function* diagonalEnds2d(opts: GridIterOpts & { all: boolean }) {
export function* diagonalEnds2d(opts: GridIterOpts & { all?: boolean }) {
const { cols, rows, tx } = __opts(opts);
const num = cols * rows - 1;
const maxX = cols - 1;
Expand Down

0 comments on commit d14458a

Please sign in to comment.