mirror of https://github.com/BRAVO68WEB/shx.git
removed promise returned on a void warning
This commit is contained in:
parent
e16b0b8ba0
commit
d7964fb0c4
|
@ -1,5 +1,5 @@
|
|||
export const useDebounce = (
|
||||
callback: (param: any) => void,
|
||||
callback: (param: any) => void | Promise<void>,
|
||||
gap: number
|
||||
) => {
|
||||
let timeout: NodeJS.Timeout | null = null;
|
||||
|
|
Loading…
Reference in New Issue