DefinitelyTyped/types/svgo/readme.md
Lukas Tetzlaff 49b4d0f80b [svgo] Add namespace to remove ugly require-import (#25172)
* 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`
2018-04-29 12:54:21 -07:00

237 B

@types/svgo

Usage

TS 2.7+

tsconfig.json

{
  "compilerOptions": {
    "esModuleInterop": true
  }
}

Older TS versions

tsconfig.json

{
  "compilerOptions": {
    "allowSyntheticDefaultImports": true
  }
}