You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, we've been using this library to generate our abi type defs and it's pretty great. There are just a couple issues we often come across (and have to fix by hand in every generated file right now).
We're enforcing type-only import syntax (i.e. setting "importsNotUsedAsValues": "error" in our tsconfig) but the generated files just use regular imports which means we get tonnes of errors for the generated files.
error TS1371: Thisimportisneverusedasavalueandmustuse 'importtype' because 'importsNotUsedAsValues' is set to 'error'.
1import{~~~~~~~~2ContractTransaction,~~~~~~~~~~~~~~~~~~~~~~
...
6BigNumberish,~~~~~~~~~~~~~~~7}from'ethers';~~~~~~~~~~~~~~~~
Would it be easy enough to just change all imports to import type?
The text was updated successfully, but these errors were encountered:
Hi, we've been using this library to generate our abi type defs and it's pretty great. There are just a couple issues we often come across (and have to fix by hand in every generated file right now).
We're enforcing type-only import syntax (i.e. setting
"importsNotUsedAsValues": "error"
in our tsconfig) but the generated files just use regular imports which means we get tonnes of errors for the generated files.Would it be easy enough to just change all imports to
import type
?The text was updated successfully, but these errors were encountered: