I have a Node.js project that is built with TypeScript I'm trying to use URLSearchParams
, however I can see the following error:
Cannot find name 'URLSearchParams'.ts(2304)
const params = new URLSearchParams();
params.append("foo", 5);
typescript: ^3.9.7
node.js: v12.16.3