Skip to content

Commit

Permalink
Fix timeout utils.ts (#1091)
Browse files Browse the repository at this point in the history
During the build 
[tsl] ERROR in /node_modules/ublaboo-datagrid/assets/utils.ts(130,3)
      TS2322: Type 'Timeout' is not assignable to type 'number'.
  • Loading branch information
MartinKokesCz authored Aug 17, 2023
1 parent 45203e5 commit 2922ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function debounce<TArgs, TFun extends (...args: TArgs[]) => unknown | Pro
fn: TFun,
slowdown: number = 200
): (...args: TArgs[]) => void {
let timeout: number | null = null;
let timeout: ReturnType<typeof setTimeout> | null = null;
let blockedByPromise: boolean = false;

return (...args) => {
Expand Down

0 comments on commit 2922ad7

Please sign in to comment.