UNPKG

goban-engine

Version:

This contains the built Go engine that is used by the Goban package. There are no display components in this package, only the logic for playing the game of Go, making it suitable for usage in node.js or other server-side environments.

7 lines (6 loc) 343 B
/** * Like setInterval, but debounces catchups (multiple invocation in rapid * succession less than our desired interval) that happen in some browsers when * tabs wake up from sleep. Cleared with the standard clearInterval. * */ export declare function niceInterval(callback: () => void, interval: number): ReturnType<typeof setInterval>;