global: snapshot

This commit is contained in:
nym21
2026-03-22 12:19:06 +01:00
parent f731f0d9d0
commit 514fdc40ee
35 changed files with 732 additions and 745 deletions

View File

@@ -22,7 +22,7 @@ export function idle(callback) {
/**
*
* @template {(...args: any[]) => any} F
* @template {(...args: never[]) => unknown} F
* @param {F} callback
* @param {number} [wait]
*/
@@ -51,7 +51,7 @@ export function throttle(callback, wait = 1000) {
}
/**
* @template {(...args: any[]) => any} F
* @template {(...args: never[]) => unknown} F
* @param {F} callback
* @param {number} [wait]
* @returns {((...args: Parameters<F>) => void) & { cancel: () => void }}