import { HardhatUserConfig } from 'hardhat/types' ; import { TypechainConfig } from './types' ; export function getDefaultTypechainConfig ( config ) { const defaultConfig = { outDir : 'typechain-types' , target : 'ethers-v5' , alwaysGenerateOverloads : false , tsNocheck : false , } ; return { ... defaultConfig , ... config . typechain , } ; }