/** * Debounce helper * * let wait = startDebounce(1000) * wait.done.then(_ => handle()) * wait.refresh() // to refresh * * @export * @param {number} ms * @returns {{done: any, refresh: () => {}}} * @author Adam Dorling * @contact https://codepen.io/naito */ export default function (ms: number): { done: any; refresh: () => {}; };