-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bafb5a
commit 6067060
Showing
8 changed files
with
64 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,39 @@ | ||
import "hardhat/types/config"; | ||
import "hardhat/types/runtime"; | ||
import 'hardhat/types/config' | ||
import 'hardhat/types/runtime' | ||
|
||
declare module "hardhat/types/config" { | ||
export type HardhatTask = string | ExpandedHardhatTask; | ||
declare module 'hardhat/types/config' { | ||
export type HardhatTask = string | ExpandedHardhatTask | ||
|
||
export type ExpandedHardhatTask = { | ||
command: string; | ||
command: string | ||
params?: { | ||
[key: string]: any; | ||
}; | ||
}; | ||
[key: string]: any | ||
} | ||
} | ||
|
||
export type WatcherTask = { | ||
tasks?: HardhatTask[]; | ||
files?: string[]; | ||
verbose?: boolean; | ||
}; | ||
tasks?: HardhatTask[] | ||
files?: string[] | ||
ignoredFiles?: string[] | ||
verbose?: boolean | ||
} | ||
|
||
// User facing config | ||
export interface HardhatUserConfig { | ||
watcher?: { [key: string]: WatcherTask }; | ||
watcher?: { [key: string]: WatcherTask } | ||
} | ||
|
||
export type WatcherConfig = { | ||
[key: string]: { | ||
tasks: Required<ExpandedHardhatTask>[]; | ||
files: string[]; | ||
verbose: boolean; | ||
}; | ||
}; | ||
tasks: Required<ExpandedHardhatTask>[] | ||
files: string[] | ||
ignoredFiles: string[] | ||
verbose: boolean | ||
} | ||
} | ||
|
||
// Fully resolved config | ||
export interface HardhatConfig { | ||
watcher: WatcherConfig; | ||
watcher: WatcherConfig | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
editor file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
changed editor file test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
changed editor file test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters