-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Task
Description
We recently made getInputTypes and getOutputTypes static methods (#77) of IAppliance. This is still correct, but since you cannot access static methods from an instance directly, we may want to add some "sugar" to IAppliance and expose non-static versions as well:
For instance something like
getOutputTypes = () => this.constructor.getOutputTypes()
Thoughts? Does this seem like a good idea? This would allow things like this:
const myAppliance = new Appliance()
console.log(myAppliance.getOutputTypes())
As opposed to:
const myAppliance = new Appliance()
console.log(myAppliance.constructor.getOutputTypes())
Relevant Resources / Research
Related Issues
Issue #77
Metadata
Metadata
Assignees
Labels
No labels