File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,14 @@ export class Property<T extends Any> {
5353
5454 private prevGetValue ?: T ;
5555
56- private lastOrigin ?: Any ;
56+ private lastMeta ?: Any ;
5757
5858 constructor ( device : Device , name : string , propertyDescr : PropertySchema ) {
5959 this . device = device ;
6060
6161 this . name = name ;
6262
63- this . lastOrigin = null ;
63+ this . lastMeta = 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,14 +194,14 @@ 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 , meta ?: 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' ) ;
201201 return ;
202202 }
203203
204- this . lastOrigin = origin ;
204+ this . lastMeta = meta ;
205205 const numberValue = < number > ( < unknown > value ) ;
206206
207207 if ( typeof this . minimum !== 'undefined' && numberValue < this . minimum ) {
You can’t perform that action at this time.
0 commit comments