I’m implementing a library in typescript and some functions are as follows:
constructor(type: TypeEnum, params: {[id:string]: any})
The thing is, whenever I use the library using js, I would like my IDE to display every single valid id
of params
. I have seen some libraries already do this, how do I archieve it?
Thanks in advance.