mirror of
https://github.com/zoriya/v10.git
synced 2026-08-14 09:59:44 +00:00
chore(ci): eslint + prettier → biome (#325)
This commit is contained in:
@@ -18,6 +18,6 @@ export function composeCallbacks<T extends (...args: any[]) => void>(...fns: (T
|
||||
if (defined.length === 1) return defined[0];
|
||||
|
||||
return ((...args: Parameters<T>) => {
|
||||
defined.forEach(fn => fn(...args));
|
||||
defined.forEach((fn) => fn(...args));
|
||||
}) as T;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
*/
|
||||
export function tryCatch<T extends (...args: any[]) => unknown>(
|
||||
fn: T | undefined,
|
||||
onError: (error: unknown) => void = console.error,
|
||||
onError: (error: unknown) => void = console.error
|
||||
): T | undefined {
|
||||
if (!fn) return undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user