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

Incorrect signature for `$_$twiz.track()` #44

Closed urish closed 6 years ago

urish commented 6 years ago

The current type declaration for $_$twiz.track() specifies that the second argument is a number, and the third one is a string, but it's actually the other way around.

Signature:

    declare namespace $_$twiz {
        function track<T>(v: T, p: number, f: string): T;
    }

Actual function definition:

    export const track = (value: any, filename: string, offset: number) => {
        // ...
    }