TS6192

error TS6192: All imports in import declaration are unused.

Broken Code ❌

1
2
3
import {type BigSource, Big} from 'big.js';

console.log('Not using big.js API');

Fixed Code ✔️

When multiple imports from a package are not being used, you will receive error TS6192. You can easily fix it by removing the unused import statement:

1
console.log('Not using big.js API');