How to get a transaction gasLimit through web3?

https://ethereum.stackexchange.com/questions/145100/how-to-get-a-transaction-gaslimit-through-web3

Although I can get the gasUsed from a transaction using web3 (it’s in both the transaction as well as the transaction-receipt), I can’t find the gasLimit anywhere. I.e.: the max amount of gas that the end-user set a particular tx can take.

Etherscan has it available so it must be available somewhere.