TS6133

'c' is declared but its value is never read.

Broken Code ❌

function sum(a: number, b: number, c: number) {  return a + b; }

Fixed Code ✔️

The best way to fix it is prefixing the unused parameter with an underscore (_) as shown below or completely removing it:

function sum(a: number, b: number, _c: number) {  return a + b; }

'volume' is declared but its value is never read.

Broken Code ❌

test.ts
const closes = ohlc.map(([time, open, high, low, close, volume]) => close);
tsconfig.json
{  "compilerOptions": {  "noUnusedParameters": true  } }

Fixed Code ✔️

A workaround is to loosen the compiler config (not recommended, though):

tsconfig.json
{  "compilerOptions": {  "noUnusedParameters": false  } }

'b' is declared but its value is never read.

Broken Code ❌

test.ts
let b;
tsconfig.json
{  "compilerOptions": {  "noUnusedLocals": true  } }

Fixed Code ✔️

You can remove the unused variable from your code or disable the check for unused variables in your TypeScript compiler config:

tsconfig.json
{  "compilerOptions": {  "noUnusedLocals": false  } }

Video Tutorial