UNPKG

vuex-easy-firestore

Version:

Easy coupling of firestore and a vuex module. 2-way sync with 0 boilerplate!

18 lines (17 loc) 369 B
/** * 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: () => {}; };