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

apply-types adds `any` types when `instrumentCallExpressions` is enabled #47

Closed urish closed 6 years ago

urish commented 6 years ago

For example, given the following input:

    function f(a) {
        return a;
    }

    let val: any = {};
    f(val);

typewiz will annotate a with the any type