mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-31 12:28:50 +08:00
Use native type
This commit is contained in:
parent
9acadeb1f8
commit
cf4d7ab1fd
1 changed files with 1 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue