@tempots/dom

DOMContext.makeAccessors() method

Returns an object with methods to get and set the value of a property or attribute.

Signature:

makeAccessors(name: string): {
        get(): unknown;
        set(value: unknown): void;
    };

Parameters

Parameter

Type

Description

name

string

The name of the property to create accessors for.

Returns: { get(): unknown; set(value: unknown): void; }

An object with methods to get and set the value of the property.