I am working with a class that has numerous methods, which I refer to as myClass. When calling it, the syntax is as follows:
myClass[key]()
Is there a way to retrieve the valid values for key? I tried using keyof myClass, but received an error message stating 'myClass refers to a value, but is being used as a type here'
The issue may stem from the fact that myClass is currently defined in a .js file and encapsulated like this:
const myClass = new MyActualClass();
export default myClass
Is there a method to extract this information without converting the .js file to TypeScript and accessing the details directly from MyActualClass?