From 9410d73c54531e0238903ece69b944dbb55d475c Mon Sep 17 00:00:00 2001 From: JP Lomas Date: Mon, 4 May 2026 20:27:48 +0100 Subject: [PATCH] =?UTF-8?q?docs:=20tsconfig.json=20(ts-node=20=F0=9F=90=9B?= =?UTF-8?q?)=20[skip=20ci]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: JP Lomas --- docs/docs/guides/basics/qrl.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/docs/guides/basics/qrl.md b/docs/docs/guides/basics/qrl.md index 59e3b337..45832d08 100644 --- a/docs/docs/guides/basics/qrl.md +++ b/docs/docs/guides/basics/qrl.md @@ -50,6 +50,22 @@ npm install --save @types/node This will install typescript for our project and install the types for node. +Next create a `tsconfig.json` file in your project directory with the following content: + +```json +{ + "compilerOptions": { + "module": "nodenext", + "moduleResolution": "nodenext", + "target": "es2022", + "esModuleInterop": true, + "strict": true, + "skipLibCheck": true, + "types": ["node"] + } +} +``` + ## Step 3: Set up web3.js and connect to a local Gqrl node In this step, we will set up the web3.js library and connect to a local Gqrl development node. Make sure Gqrl is running locally with HTTP JSON-RPC available at `http://localhost:8545`.