File tree 4 files changed +10
-1
lines changed
4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change
1
+ // Note: We export the builtin plugins' types here, so that any type extension
2
+ // they may have gets loaded.
3
+ export type * from "./internal/builtin-plugins/index.js" ;
4
+
1
5
export type * from "@nomicfoundation/hardhat-core/config" ;
2
6
export * from "@nomicfoundation/hardhat-core/config" ;
Original file line number Diff line number Diff line change 1
1
import type { HardhatPlugin } from "@nomicfoundation/hardhat-core/types/plugins" ;
2
2
3
3
import { globalFlag , task } from "@nomicfoundation/hardhat-core/config" ;
4
- import "./type-extensions.js" ;
4
+ export type * from "./type-extensions.js" ;
5
5
6
6
export default {
7
7
id : "hardhat-foo" ,
Original file line number Diff line number Diff line change
1
+ import "@nomicfoundation/hardhat-core/types/config" ;
2
+
1
3
declare module "@nomicfoundation/hardhat-core/types/config" {
2
4
interface FooUserConfig {
3
5
bar ?: number | number [ ] ;
Original file line number Diff line number Diff line change 1
1
import type { HardhatPlugin } from "@nomicfoundation/hardhat-core/types/plugins" ;
2
2
3
+ // Note: When importing a plugin, you have to export its types, so that its
4
+ // type extensions, if any, also get loaded.
5
+ export type * from "./hardhat-foo/index.js" ;
3
6
import hardhatFoo from "./hardhat-foo/index.js" ;
4
7
5
8
export const builtinPlugins : HardhatPlugin [ ] = [ hardhatFoo ] ;
You can’t perform that action at this time.
0 commit comments