Skip to content

Commit 24916b6

Browse files
authored
fix(typescript): add debounced.cancel() method to return type (quasarframework#6881)
* fix(typescript): add debounced.cancel() method to return type * fix(typo): added type intersection to wrong method
1 parent 7cfdd4b commit 24916b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/types/utils.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function debounce<F extends (...args: any[]) => any>(
1111
fn: F,
1212
wait?: number,
1313
immediate?: boolean
14-
): F;
14+
): F & { cancel(): void };
1515
export function exportFile(
1616
fileName: string,
1717
rawData: BlobPart,

0 commit comments

Comments
 (0)