title: How to use URLSearchParams in a Node.js and TypeScript project
body: <p>I have a Node.js project that is built with TypeScript I'm trying to use <a href="https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams" rel="noreferrer"><code>URLSearchParams</code></a>, however I can see the following error:</p>
  <pre><code>Cannot find name 'URLSearchParams'.ts(2304)
  </code></pre>
  <pre><code>const params = new URLSearchParams();
  params.append(&quot;foo&quot;, 5);
  </code></pre>
  <hr />
  <pre><code>typescript: ^3.9.7
  node.js: v12.16.3
  </code></pre>