remove usage of @ts-ignore
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user