mockdeep / typewiz

Automatically discover and add missing types in your TypeScript code
https://medium.com/@urish/manual-typing-is-no-fun-introducing-typewiz-58e3e8813f4c
1.1k stars 46 forks source link

Fails with nested objects #51

Closed urish closed 6 years ago

urish commented 6 years ago

For example, the following code will cause TypeWiz to throw an error in run time:

    let a = {};
    a.a = a;
    function foo(obj) { return obj; }

    foo(a);

The expected behavior in this case would just be not to find the type for obj