Skip to content

Specify defaults in the RokuDeploy constructor to skip passing them to each method #275

Description

@TwitchBronBron

Support passing high-level default properties to roku-deploy so that you don't need to specify them in calls later on. (i.e. you already specified host in the constructor, so you wouldn't need to pass that when calling .sideload()).

new RokuDeploy({
    host: '1.2.3.4',
    password: 'aaaa'
    ecpPort: 8060
});

Open questions:

  • how do we handle specific function interfaces? host is required to run .sideload(), except when pre-populated in the constructor. so that makes things a little confusing. maybe there's a typescript trick we can do where, if you specify a field in the constructor, we return a different type back that narrows the options on the functions accordingly? Might not be worth the complexity...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions