fix eslint type error
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user