Skip to content

Commit

Permalink
Added back mention of required tsconfig options (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
crutchcorn authored and hipstersmoothie committed Sep 23, 2019
1 parent ee5a809 commit 3b58221
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/jimp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ If you're using this library with TypeScript the method of importing slightly di
import Jimp from 'jimp';
```

**Note**: This change in import does not change the runtime behavior of your code at all.
This requires setting the `allowSyntheticDefaultImports` compiler option to `true` in your `tsconfig`

**Note 1**: `esModuleInterop` implicitly sets `allowSyntheticDefaultImports` to `true`

**Note 2**: `allowSyntheticDefaultImports` nor `esModuleInterop` change the runtime behavior of your code at all. They are just flags that tells TypeScript you need the compatibility they offer.

## Module Build

Expand Down

0 comments on commit 3b58221

Please sign in to comment.