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
MapProxy
<KEY
,VALUE
>
Extended by
Type parameters
Type parameter | Value |
---|---|
KEY | - |
VALUE | - |
WRITERETURN | - |
WRITEVALUE | VALUE |
Constructors
new WriteableMapProxy()
new WriteableMapProxy<KEY, VALUE, WRITERETURN, WRITEVALUE>(
getKeys,
getItem,
setter): WriteableMapProxy<KEY, VALUE, WRITERETURN, WRITEVALUE>
Parameters
Parameter | Type |
---|---|
getKeys | () => KEY [] |
getItem | (key ) => VALUE |
setter | (key , val , options ?) => WRITERETURN |
Returns
WriteableMapProxy
<KEY
, VALUE
, WRITERETURN
, WRITEVALUE
>
Overrides
Accessors
size
get size(): number
Returns
number
Methods
filter()
filter(filter): VALUE[]
Parameters
Parameter | Type |
---|---|
filter | (item , key ) => boolean |
Returns
VALUE
[]
Inherited from
find()
find(filter): undefined | VALUE
Parameters
Parameter | Type |
---|---|
filter | (item , key ) => boolean |
Returns
undefined
| VALUE
Inherited from
first()
first(): undefined | VALUE
Returns
undefined
| VALUE
Inherited from
get()
get(key): VALUE
Parameters
Parameter | Type |
---|---|
key | KEY |
Returns
VALUE
Inherited from
keys()
keys(): KEY[]
Returns
KEY
[]
Inherited from
map()
map<T>(callback): T[]
Type parameters
Type parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
callback | (item , key ) => T |
Returns
T
[]
Inherited from
set()
set(
key,
value,
options): WRITERETURN
Parameters
Parameter | Type |
---|---|
key | KEY |
value | WRITEVALUE |
options | SetterOptions |
Returns
WRITERETURN
values()
values(): Generator<VALUE & null | object, void, unknown>
Returns
Generator
<VALUE
& null
| object
, void
, unknown
>