From 1355a123e5b9f61dc8107ce5a00b412f79d67961 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Thu, 27 Oct 2022 15:45:52 +0400 Subject: [PATCH] Move polyfills to TS --- src/utils/{polyfills.js => polyfills.ts} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename src/utils/{polyfills.js => polyfills.ts} (95%) diff --git a/src/utils/polyfills.js b/src/utils/polyfills.ts similarity index 95% rename from src/utils/polyfills.js rename to src/utils/polyfills.ts index 9843e337f..d5b8f9640 100644 --- a/src/utils/polyfills.js +++ b/src/utils/polyfills.ts @@ -12,7 +12,7 @@ export default () => { const isIE = () => { let match; const agent = window.navigator.userAgent; - const rules = [ + const rules: [string, RegExp][] = [ ['edge', /Edge\/([0-9\._]+)/], ['ie', /MSIE\s(7\.0)/], ['ie', /MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],