Skip to content

Commit

Permalink
docs: mention types required for Module API
Browse files Browse the repository at this point in the history
  • Loading branch information
madyanalj authored Jan 18, 2020
1 parent 4a49e9a commit e34f707
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/i18n/en/docs/typeScript.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,7 @@ Parcel does not use the `baseUrl` or `paths` directives in `tsconfig.json`. You
```

See [this gist](https://gist.github.com/croaky/e3394e78d419475efc79c1e418c243ed) for a full example.

## Module API types

To interact with Parcel's Module API (e.g. when setting up [Hot Module Replacement](https://parceljs.org/hmr.html)), make sure to install the `@types/parcel-env` package.

0 comments on commit e34f707

Please sign in to comment.