Skip to content

Should writeProperty() return a value #193

Open
@danielpeintner

Description

@danielpeintner

We currently have the following definition for writeProperty()

  Promise<void> writeProperty(DOMString propertyName,
                              any value,
                              optional InteractionOptions options = null);

I wonder whether the return value should be Promise<any> instead of Promise<void> ?

There may be different use-cases were a server might modify the value initially provided (e.g., round a number 1.2345 to 1.23 by limiting digits) and returning the actually set value would be helpful. No additional readProperty() needed.

What are the consequences of such a change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    for next iterationPlanned or postponed topics for the futureuse caseDescribes a scenario that may be useful for technical decisionswait-for-td

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions