A typescript plugin for adding typescript support and autocomplete to your .sol
file imports.
npm i @tevm/rollup-plugin @tevm/ts-plugin
- Add @tevm/ts-plugin to your
plugins
array incompilerOptions
- if
foundry.toml
config is not in the same directory as the ts-config pass in a relative path to the the project root asproject
config option
{
"compilerOptions": {
"plugins": [
{
"name": "@tevm/ts-plugin",
"project": "../"
}
]
}
}