Skip to content

Commit

Permalink
Declare types for dotenv-safer
Browse files Browse the repository at this point in the history
We need to declare types to fix eslint problems:
```
/home/runner/work/acre/acre/solidity/hardhat.config.ts
Error:   10:1  error  Unsafe call of an `any` typed value             @typescript-eslint/no-unsafe-call
Error:   10:8  error  Unsafe member access .config on an `any` value  @typescript-eslint/no-unsafe-member-access
```
  • Loading branch information
nkuba committed Apr 25, 2024
1 parent e81a5d2 commit cd5a169
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions solidity/types/dotenv-safer.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module "dotenv-safer" {
// eslint-disable-next-line import/prefer-default-export
export function config(options = {})
}

0 comments on commit cd5a169

Please sign in to comment.