Skip to content

Commit d3cb5d9

Browse files
committed
Use typeof to avoid repeating a type declaration.
1 parent bca5d06 commit d3cb5d9

File tree

1 file changed

+1
-1
lines changed
  • v-next/hardhat-utils/src

1 file changed

+1
-1
lines changed

v-next/hardhat-utils/src/fs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ export async function mkdir(absolutePath: string): Promise<void> {
343343
* Alias for `mkdir`.
344344
* @see mkdir
345345
*/
346-
export const ensureDir: (absolutePath: string) => Promise<void> = mkdir;
346+
export const ensureDir: typeof mkdir = mkdir;
347347

348348
/**
349349
* Retrieves the last change time of a file or directory's properties.

0 commit comments

Comments
 (0)