google/intermock

Maximum call stack size exceeded

Opened this issue · 2 comments

Interfaces with recursive data types throw a 'Maximum call stack size exceeded' error

interface User {
   firstName: string;
   lastName: string;
   username: string;
   emailAddress: string;
   bestFriends: User[];
}

Thanks for opening this issue. I think we need to explicitly handle recursive types, the type traverser runs on mutual recursion and eventually the stack limit will be reached. I'll see what I can do.

Toolo commented

Running into this as well 👍