removed promise returned on a void warning

This commit is contained in:
Chirag Bhalotia 2023-06-24 00:55:34 +05:30
parent e16b0b8ba0
commit d7964fb0c4
No known key found for this signature in database
GPG Key ID: F7F1F1FBFFD40427
1 changed files with 1 additions and 1 deletions

View File

@ -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;