Import typechain instances from `typechain-truffle` folder

33 views Asked by At

I have a repo for a typechain project and need to do

import { PublicKeyToAddressInstance } from "../typechain-truffle/contracts/PublicKeyToAddress";

here to import the type definitions. I've seen it is usually done as

import { PublicKeyToAddressInstance } from "../typechain-truffle";

This works for me, but the type for contract methods is always any.

0

There are 0 answers