Skip to content

PropertyDescriptor

[<Interface>]
type PropertyDescriptor =
    abstract member configurable: bool with get, set
    abstract member enumerable: bool with get, set
    abstract member get: RemoteObject option with get, set
    abstract member isOwn: bool option with get, set
    abstract member name: string with get, set
    abstract member set: RemoteObject option with get, set
    abstract member symbol: RemoteObject option with get, set
    abstract member value: RemoteObject option with get, set
    abstract member wasThrown: bool option with get, set
    abstract member writable: bool option with get, set
    static member Create (name: string, configurable: bool, enumerable: bool, ?value: RemoteObject, ?writable: bool, ?get: RemoteObject, ?set: RemoteObject, ?wasThrown: bool, ?isOwn: bool, ?symbol: RemoteObject) : PropertyDescriptor
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Object property descriptor.

Properties

abstract member configurable: bool with get, set

True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.

abstract member enumerable: bool with get, set

True if this property shows up during enumeration of the properties on the corresponding object.

abstract member get: RemoteObject option with get, set

A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only).

abstract member isOwn: bool option with get, set

True if the property is owned for the object.

abstract member name: string with get, set

Property name or symbol description.

abstract member set: RemoteObject option with get, set

A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only).

abstract member symbol: RemoteObject option with get, set

Property symbol object, if the property is of the symbol type.

abstract member value: RemoteObject option with get, set

The value associated with the property.

abstract member wasThrown: bool option with get, set

True if the result was thrown during the evaluation.

abstract member writable: bool option with get, set

True if the value associated with the property may be changed (data descriptors only).

Methods

static member Create (name: string, configurable: bool, enumerable: bool, ?value: RemoteObject, ?writable: bool, ?get: RemoteObject, ?set: RemoteObject, ?wasThrown: bool, ?isOwn: bool, ?symbol: RemoteObject) : PropertyDescriptor