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
I'm using Hardhat with TypeScript and of course I'm using HardhatUserConfig to type my configuration. I expected the type-extensions.ts file to be picked up automatically by the TypeScript system and effectively patch that type, but that is not the case, saying that the exposed property is not defined.
To make this work, I have to import the type-extensions.ts file explicitly:
import'hardhat-exposed/dist/type-extensions'import{HardhatUserConfig}from'hardhat/config'constconfig: HardhatUserConfig={exposed: {// My config}}
This is not a problem and it works, however, is this the intended way to use the types?
The text was updated successfully, but these errors were encountered:
matei-radu
changed the title
Type Extensions are not exposed/available
Type Extensions are not exposed/available automatically
Feb 17, 2023
I'm using Hardhat with TypeScript and of course I'm using
HardhatUserConfig
to type my configuration. I expected thetype-extensions.ts
file to be picked up automatically by the TypeScript system and effectively patch that type, but that is not the case, saying that theexposed
property is not defined.To make this work, I have to import the
type-extensions.ts
file explicitly:This is not a problem and it works, however, is this the intended way to use the types?
The text was updated successfully, but these errors were encountered: