score:3

as a kind of brute force method i satisfied the typescript compiler using a custom typings file.

// typings/custom.d.ts
declare module "*";

and tell the compiler in my tsconfig.json to read my custom typings:

// tsconfig.json
{
    "compileroptions": {
        "module": "commonjs",
        "target": "es5",
        "noimplicitany": false,
        "removecomments": true,
        "sourcemap": true,
        "allowjs": true,
        "watch": true,
        "outdir": "./dist/",
        "jsx": "react",
        "experimentaldecorators": true,
        "allowsyntheticdefaultimports": true,
        "typeroots": [
             "./typings",
             "node_modules/@types"
         ]
    }
}

Related Query

More Query from same tag