WriteableMapProxy

A data structure similar to a normal Map which accesses its data through API
commands to the Lucid app. This structure is iterable with for...of.

Extends

Extended by

Type parameters

Type parameterValue
KEY-
VALUE-
WRITERETURN-
WRITEVALUEVALUE

Constructors

new WriteableMapProxy()

new WriteableMapProxy<KEY, VALUE, WRITERETURN, WRITEVALUE>(
   getKeys, 
   getItem, 
setter): WriteableMapProxy<KEY, VALUE, WRITERETURN, WRITEVALUE>

Parameters

ParameterType
getKeys() => KEY[]
getItem(key) => VALUE
setter(key, val, options?) => WRITERETURN

Returns

WriteableMapProxy<KEY, VALUE, WRITERETURN, WRITEVALUE>

Overrides

MapProxy.constructor


Accessors

size

get size(): number

Returns

number


Methods

filter()

filter(filter): VALUE[]

Parameters

ParameterType
filter(item, key) => boolean

Returns

VALUE[]

Inherited from

MapProxy.filter


find()

find(filter): undefined | VALUE

Parameters

ParameterType
filter(item, key) => boolean

Returns

undefined | VALUE

Inherited from

MapProxy.find


first()

first(): undefined | VALUE

Returns

undefined | VALUE

Inherited from

MapProxy.first


get()

get(key): VALUE

Parameters

ParameterType
keyKEY

Returns

VALUE

Inherited from

MapProxy.get


keys()

keys(): KEY[]

Returns

KEY[]

Inherited from

MapProxy.keys


map()

map<T>(callback): T[]

Type parameters

Type parameter
T

Parameters

ParameterType
callback(item, key) => T

Returns

T[]

Inherited from

MapProxy.map


set()

set(
   key, 
   value, 
   options): WRITERETURN

Parameters

ParameterType
keyKEY
valueWRITEVALUE
optionsSetterOptions

Returns

WRITERETURN


values()

values(): Generator<VALUE & null | object, void, unknown>

Returns

Generator<VALUE & null | object, void, unknown>

Inherited from

MapProxy.values