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 ...