Skip to content

Commit

Permalink
make generic default to any
Browse files Browse the repository at this point in the history
  • Loading branch information
uwinkelvos committed Nov 7, 2023
1 parent a65bc9e commit 994a02f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/esmock.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ type MockFunction = {
* @param opts
* @returns The mocked import-tree result of "import({@link modulePath})"
*/
<T>(
<T = any>(
modulePath: string,
parent: string,
defs?: MockMap,
gdefs?: MockMap,
opts?: Options
): Promise<T>,
<T>(
<T = any>(
modulePath: string,
defs?: MockMap,
gdefs?: MockMap,
Expand Down

0 comments on commit 994a02f

Please sign in to comment.