Solidity Tutorial: All About Constants and Immutables | by Jean Cvllr | Better Programming
Here is typings of bytes32, address, uint256 for Typescript. I hope this can help if anyone is struggling to handle web3.js strings. You can explicitly type string to 'bytes32' which is compatible