Ignore any in useEffectEvent.ts

This commit is contained in:
Robert
2024-02-13 14:47:07 +00:00
parent 334dbf57ef
commit ac707ff75c

View File

@@ -9,6 +9,7 @@ import { useCallback, useInsertionEffect, useRef } from "react";
*
* @param callback The callback to call when the event is triggered.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function useEffectEvent<T extends (...args: any[]) => any>(callback: T) {
const ref = useRef<T>(callback);