Clean up Element#scrollIntoViewIfNeeded
type
This commit is contained in:
parent
033b4830d1
commit
e4b4a0cd1e
2 changed files with 8 additions and 10 deletions
7
ts/window.d.ts
vendored
7
ts/window.d.ts
vendored
|
@ -498,6 +498,13 @@ declare global {
|
|||
stackForLog?: string;
|
||||
}
|
||||
|
||||
// We want to extend `Element`'s properties, so we need an interface.
|
||||
// eslint-disable-next-line no-restricted-syntax
|
||||
interface Element {
|
||||
// WebKit-specific
|
||||
scrollIntoViewIfNeeded: (bringToCenter?: boolean) => void;
|
||||
}
|
||||
|
||||
// Uint8Array and ArrayBuffer are type-compatible in TypeScript's covariant
|
||||
// type checker, but in reality they are not. Let's assert correct use!
|
||||
interface Uint8Array {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue