useDelayReset.d.ts 329 B

123456
  1. import type { Ref } from 'vue';
  2. /**
  3. * Similar with `useLock`, but this hook will always execute last value.
  4. * When set to `true`, it will keep `true` for a short time even if `false` is set.
  5. */
  6. export default function useDelayReset(timeout?: number): [Ref<Boolean>, (val: boolean, callback?: () => void) => void, () => void];