Skip to content

Commit

Permalink
jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
inker committed Jan 21, 2024
1 parent 0e26473 commit 01399f0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/utils/backtrack.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
interface BacktrackOptions<C> {
/**
* Should current path traversal be stopped
*/
reject: (candidate: C) => boolean

/**
* Should solution be accepted
*/
accept: (candidate: C) => boolean

/**
* Generate new candidates
*/
generate: (candidate: C) => C[]
}

Expand Down

0 comments on commit 01399f0

Please sign in to comment.