Fix TypeScript compilation performance (closes #1591) (#1616)
Fix TypeScript compilation performance (closes #1591) (#1616)

* Fix TypeScript compilation performance (closes #1591)

* Fix lint

* Fix tests

* Update comment

AndreyBelym/testcafe,VasilyStrelyaev/testcafe,AndreyBelym/testcafe,VasilyStrelyaev/testcafe,MargaritaLoseva/testcafe,MargaritaLoseva/testcafe,VasilyStrelyaev/testcafe,AndreyBelym/testcafe,miherlosev/testcafe,AlexanderMoskovkin/testcafe,churkin/testcafe,miherlosev/testcafe,DevExpress/testcafe,miherlosev/testcafe,VasilyStrelyaev/testcafe,VasilyStrelyaev/testcafe,DevExpress/testcafe,MargaritaLoseva/testcafe,DevExpress/testcafe,miherlosev/testcafe,DevExpress/testcafe,churkin/testcafe,AlexanderMoskovkin/testcafe-phoenix,MargaritaLoseva/testcafe,AndreyBelym/testcafe,AlexanderMoskovkin/testcafe-phoenix,miherlosev/testcafe,AlexanderMoskovkin/testcafe,AlexanderMoskovkin/testcafe,AndreyBelym/testcafe,DevExpress/testcafe,AlexanderMoskovkin/testcafe,AlexanderMoskovkin/testcafe-phoenix,churkin/testcafe,churkin/testcafe