Skip to content

Commit 7491435

Browse files
committed
better comments
1 parent b0c8d82 commit 7491435

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/utils/debounce.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ type DebouncedCallback = {
55
};
66
type CallbackFunction = () => unknown;
77
type DebounceOptions = {
8+
/** The max. time in ms to wait for the callback to be invoked. */
89
maxWait?: number;
9-
// This can be overwritten to use a different setTimeout implementation, e.g. to avoid triggering change detection in Angular
10+
/** This can be overwritten to use a different setTimeout implementation, e.g. to avoid triggering change detection in Angular */
1011
setTimeoutImpl?: typeof setTimeout;
1112
};
1213

0 commit comments

Comments
 (0)