From c72ce66a7b61905501425d7432e40fa3f69f2930 Mon Sep 17 00:00:00 2001 From: Vamp <25523682+the-vampiire@users.noreply.github.com> Date: Fri, 13 Sep 2019 12:28:14 +0000 Subject: [PATCH] upadating README: notes on CommonJS autocomplete (#2256) closes #2226. add note on how to gain typings / autocomplete / intellisense when using CommonJS (`require()`) imports --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index e5896cc2a8..f212285d64 100755 --- a/README.md +++ b/README.md @@ -57,6 +57,15 @@ Using cdn: ## Example +### note: CommonJS usage +In order to gain the TypeScript typings (for intellisense / autocomplete) while using CommonJS imports with `require()` use the following approach: + +```js +const axios = require('axios').default; + +// axios. will now provide autocomplete and parameter typings +``` + Performing a `GET` request ```js