Skip to content

Commit

Permalink
chore: update TS type
Browse files Browse the repository at this point in the history
  • Loading branch information
Wxh16144 committed Jan 18, 2025
1 parent cff2bf0 commit a232eb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hooks/src/utils/domTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ export function getTargetElement<T extends TargetType>(target: BasicTarget<T>, d
targetElement = target;
}

return getDOM(targetElement) ?? defaultElement;
return (getDOM(targetElement) ?? defaultElement) as T;
}

0 comments on commit a232eb6

Please sign in to comment.