Use native type

This commit is contained in:
Leonabcd123 2025-12-18 21:49:20 +02:00
parent 9acadeb1f8
commit cf4d7ab1fd

View file

@ -105,13 +105,6 @@ type ElementWithValue =
| HTMLTextAreaElement
| HTMLSelectElement;
type scrollIntoViewOptions = {
behavior?: "smooth" | "instant" | "auto";
block?: "start" | "center" | "end" | "nearest";
container?: "all" | "nearest";
inline?: "start" | "center" | "end" | "nearest";
};
export class ElementWithUtils<T extends HTMLElement = HTMLElement> {
/**
* The native dom element
@ -209,7 +202,7 @@ export class ElementWithUtils<T extends HTMLElement = HTMLElement> {
return this.native.offsetWidth > 0 || this.native.offsetHeight > 0;
}
scrollIntoView(options: scrollIntoViewOptions): this {
scrollIntoView(options: ScrollIntoViewOptions): this {
this.native.scrollIntoView(options);
return this;