Skip to content

Commit

Permalink
feat: create ElementRef interface to avoid use of any
Browse files Browse the repository at this point in the history
  • Loading branch information
albertjcuac committed Mar 28, 2024
1 parent 86a9c52 commit cd76aa3
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
},
setup(props) {
interface ElementRef {
$el: HTMLElement;
}
useRegisterXModule(scrollXModule);
const xBus = useXBus();
Expand All @@ -52,7 +55,7 @@
*
* @public
*/
const el = ref<any>(null);
const el = ref<ElementRef | null>(null);
/**
* Pending identifier scroll position to restore. If it matches the {@link MainScrollItem} item
Expand Down

0 comments on commit cd76aa3

Please sign in to comment.