Skip to content

Expose getInputTypes and getOutputTypes for instances too #81

@slifty

Description

@slifty

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions