Via npm:
npm install --save-dev https://github.com/machinomy/types-truffle
or yarn:
yarn add https://github.com/machinomy/types-truffle --dev
Don't forget to manually include index.d.ts
within an include
section of your tsconfig.json
"include": [
...
"./node_modules/@machinomy/types-truffle/index.d.ts"
]