jQuery is still a useful and pragmatic library, but chances are increasingly that you’re not dependent on using it in your projects to accomplish basic tasks like selecting elements, styling them, ...
This method requires a valid tsconfig.json file to be present in the root of your project. Create a magic.d.ts file in the root directory of your project and add the snippet you copied: TypeScript's ...