Skip to content

Commit 93dc899

Browse files
committed
linters plz
1 parent 55fed34 commit 93dc899

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/utils/src/supports.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ export function supportsNativeFetch(): boolean {
106106
// so create a "pure" iframe to see if that has native fetch
107107
let result = false;
108108
const doc = global.document;
109-
if (doc && typeof (doc as object).createElement === 'function') {
109+
// tslint:disable-next-line:no-unbound-method deprecation
110+
if (doc && typeof (doc.createElement as unknown) === `function`) {
110111
try {
111112
const sandbox = doc.createElement('iframe');
112113
sandbox.hidden = true;

0 commit comments

Comments
 (0)