Replace any with unknown on type definitions for built-in ECMAScript APIs
Add unknownify to devDependencies of your project.
npm i -D unknownify
Add type definition file to your project.
/// <reference path="path/to/node_modules/unknownify/lib/lib.d.ts" />
// Or, specify type definition files you want to use
/// <reference path="path/to/node_modules/unknownify/lib/lib.es5.d.ts" />
Don't forget to override the path to match the directory structure of your project.