From e34f7074e38520e88189f2c001e4531cfb320870 Mon Sep 17 00:00:00 2001 From: madyanalj <22075444+madyanalj@users.noreply.github.com> Date: Sat, 18 Jan 2020 15:01:38 +0000 Subject: [PATCH] docs: mention types required for Module API --- src/i18n/en/docs/typeScript.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/i18n/en/docs/typeScript.md b/src/i18n/en/docs/typeScript.md index 8f72eca07..8a7ab2acd 100644 --- a/src/i18n/en/docs/typeScript.md +++ b/src/i18n/en/docs/typeScript.md @@ -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.