remove usage of @ts-ignore

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-01-18 11:19:01 +01:00
parent 593de33361
commit 59a9309536
13 changed files with 45 additions and 83 deletions
@@ -19,8 +19,7 @@
// JSDOM doesn't support this: https://github.com/jsdom/jsdom/issues/1664
class GetBBoxPolyfill {
static exists(): boolean {
// @ts-ignore
return typeof window.Element.prototype.getBBox !== 'undefined';
return typeof (window.Element.prototype as any).getBBox !== 'undefined';
}
static create(
@@ -44,8 +43,7 @@ class GetBBoxPolyfill {
return;
}
// @ts-ignore
delete window.Element.prototype.getBBox;
delete (window.Element.prototype as any).getBBox;
}
}