Skip to content

Commit bc0d98b

Browse files
committed
Proper type for importUserConfig
1 parent 01c2e6f commit bc0d98b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

v-next/hardhat/src/internal/helpers/config-loading.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import type { HardhatUserConfig } from "@ignored/hardhat-vnext-core/config";
2+
13
import { isAbsolute, resolve } from "node:path";
24
import { pathToFileURL } from "node:url";
35

@@ -23,7 +25,7 @@ export async function findClosestHardhatConfig(): Promise<string> {
2325

2426
export async function importUserConfig(
2527
configPath: string,
26-
): Promise<Record<string | symbol, unknown>> {
28+
): Promise<HardhatUserConfig> {
2729
const normalizedPath = isAbsolute(configPath)
2830
? configPath
2931
: resolve(process.cwd(), configPath);

0 commit comments

Comments
 (0)