fix eslint type error

This commit is contained in:
oiov
2025-10-20 12:13:14 +08:00
parent b9a80d4df4
commit d75ec5fda2
11 changed files with 19 additions and 2577 deletions
@@ -47,7 +47,6 @@ export interface ImageUploadNodeOptions {
* @default {}
* @example { class: 'foo' }
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
HTMLAttributes: Record<string, any>;
}
@@ -162,10 +162,8 @@ export const TooltipTrigger = React.forwardRef<
const context = useTooltipContext();
const childrenRef = React.isValidElement(children)
? parseInt(React.version, 10) >= 19
? // eslint-disable-next-line @typescript-eslint/no-explicit-any
(children as { props: { ref?: React.Ref<any> } }).props.ref
: // eslint-disable-next-line @typescript-eslint/no-explicit-any
(children as any).ref
? (children as { props: { ref?: React.Ref<any> } }).props.ref
: (children as any).ref
: undefined;
const ref = useMergeRefs([context.refs.setReference, propRef, childrenRef]);