Skip to main content
Version: 2.x

Accessor interface

@microsoft/fast-element > Accessor

Accessor interface

Represents a getter/setter property accessor on an object.

Signature:

export interface Accessor 

Properties

Property

Modifiers

Type

Description

name

string

The name of the property.

Methods

Method

Description

getValue(source)

Gets the value of the property on the source object.

setValue(source, value)

Sets the value of the property on the source object.