Skip to content

Commit 5b822e3

Browse files
Change lastOrigin type and update setValue method
1 parent a8ce286 commit 5b822e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/property.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ export class Property<T extends Any> {
5353

5454
private prevGetValue?: T;
5555

56-
private lastOrigin?: string;
56+
private lastOrigin?: Any;
5757

5858
constructor(device: Device, name: string, propertyDescr: PropertySchema) {
5959
this.device = device;
6060

6161
this.name = name;
6262

63-
this.lastOrigin = "";
63+
this.lastOrigin = null;
6464

6565
// The propertyDescr argument used to be the 'type' string, so we add an
6666
// assertion here to notify anybody who has an older plugin.
@@ -194,7 +194,7 @@ export class Property<T extends Any> {
194194
* It is anticipated that this method will most likely be overridden
195195
* by a derived class.
196196
*/
197-
setValue(value: T, origin?: any): Promise<T> {
197+
setValue(value: T, meta?: any): Promise<T> {
198198
return new Promise((resolve, reject) => {
199199
if (this.readOnly) {
200200
reject('Read-only property');

0 commit comments

Comments
 (0)