If you go through this method, you might see these kind of hints:
The image if a capture of my zed code editor
The code snippets to reproduce the behavior are the same of my previous answer, JavaScript "implements" example:
// specific-parser.js
/**
* @class
* @implements {GenericParserPrototype}
*/
export class SpecificParser {
getFoo(name) {
// ^ (parameter) name: any
}
foo = 20
}
// jsconfig.json
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"types": ["./index"]
}
}
// index.d.ts
declare interface GenericParserPrototype {
foo: string;
getFoo(param: string): string[];
}