After attempting to utilize a specific library (query-string), I realized that the 'parse' function was returning an any type. To address this, I decided to update the type definitions to include a generic.
As a result, I forked the DefinitelyTyped repository and made changes to the definition:
export function parse(str: string, options?: ParseOptions): any;
which I modified to:
export function parse<T>(str: string, options?: ParseOptions): T;
However, upon attempting to compile, I received the following error message:
https://github.com/Microsoft/dtslint/blob/master/docs/no-unnecessary-generics.md
I am struggling to understand why this would pose a problem. Do I need to cast it in my personal project?