Skip to content

Commit

Permalink
types: Fix an any in withEnv's definition
Browse files Browse the repository at this point in the history
  • Loading branch information
gnprice committed Apr 15, 2022
1 parent 44d5fe0 commit a3ebd0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/env.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
let i = 0;
const envs = {};

export function withEnv<Env, A extends ReadonlyArray<any>, B>(
export function withEnv<Env, A extends ReadonlyArray<unknown>, B>(
callback: (env: Env, ...args: A) => B,
): {
withEnv<T>(env: T): (...args: A) => B;
Expand Down

0 comments on commit a3ebd0f

Please sign in to comment.