amis-rpc-design/node_modules/rc-select/es/hooks/useDelayReset.d.ts
2023-10-07 19:42:30 +08:00

6 lines
292 B
TypeScript

/**
* Similar with `useLock`, but this hook will always execute last value.
* When set to `true`, it will keep `true` for a short time even if `false` is set.
*/
export default function useDelayReset(timeout?: number): [boolean, (val: boolean, callback?: () => void) => void, () => void];