Skip to content

Commit

Permalink
Merge pull request #121 from SW13-Monstera/dev
Browse files Browse the repository at this point in the history
Merge dev into main
  • Loading branch information
Kim-Hyunjo authored Jan 21, 2024
2 parents 26373cd + 3a545cb commit 53d2df6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/service/src/utils/debounce.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
let timerId: number | undefined;
let timerId: number | ReturnType<typeof setTimeout>;

export const debounce = (func: (value: string) => void, value: string, delay: number) => {
clearTimeout(timerId);
timerId = setTimeout(() => {
timerId = window.setTimeout(() => {
func(value);
}, delay);
};

2 comments on commit 53d2df6

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://csbroker.io as production
🚀 Deployed on https://65ad33eec319e86ea2ad6686--csbroker.netlify.app

Please sign in to comment.