UNPKG

shell-ahk

Version:

`Lodash`/`jQuery` for `AHK`.

13 lines (8 loc) 288 B
# @ts-check import $bind from './bind' ###* @type import('../type/module').SetInterval ### export default (callback, time) -> callback = $bind callback unless time > 0 then throw '$.setInterval: invalid value' Native 'SetTimer, % callback, % time' return callback