mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* add namespace to remove ugly require import and allow regular es6 import syntax * set `esModuleInterop` and `allowSyntheticDefaultImports` flags * Add note which compiler options to set for which TS version * Move TS compiler Options comments to `readme.md`
237 B
237 B
@types/svgo
Usage
TS 2.7+
tsconfig.json
{
"compilerOptions": {
"esModuleInterop": true
}
}
Older TS versions
tsconfig.json
{
"compilerOptions": {
"allowSyntheticDefaultImports": true
}
}