@salesforce/core
Preparing search index...
config/configStore
ConfigStore
Type Alias ConfigStore<P>
An interface for a config object with a persistent store.
type
ConfigStore
<
P
extends
ConfigContents
=
ConfigContents
>
=
{
clear
()
:
void
;
entries
()
:
ConfigEntry
[]
;
forEach
(
actionFn
:
(
key
:
string
,
value
:
AnyJson
)
=>
void
)
:
void
;
get
<
K
extends
string
>
(
key
:
K
,
decrypt
:
boolean
)
:
P
[
K
]
;
get
<
T
extends
AnyJson
>
(
key
:
string
,
decrypt
:
boolean
)
:
T
;
getContents
()
:
P
;
getKeysByValue
(
value
:
AnyJson
)
:
Key
<
P
>
[]
;
has
(
key
:
string
)
:
boolean
;
keys
()
:
Key
<
P
>
[]
;
set
<
K
extends
string
>
(
key
:
K
,
value
:
P
[
K
]
)
:
void
;
set
<
T
extends
AnyJson
>
(
key
:
string
,
value
:
T
)
:
void
;
unset
(
key
:
string
)
:
boolean
;
unsetAll
(
keys
:
string
[]
)
:
boolean
;
update
<
K
extends
string
>
(
key
:
K
,
value
:
Partial
<
P
[
K
]
>
)
:
void
;
update
<
T
extends
AnyJson
>
(
key
:
string
,
value
:
Partial
<
T
>
)
:
void
;
values
()
:
AnyJson
[]
;
}
Type Parameters
P
extends
ConfigContents
=
ConfigContents
Implemented by
BaseConfigStore
Index
Methods
clear
entries
for
Each
get
get
Contents
get
Keys
By
Value
has
keys
set
unset
unset
All
update
values
Methods
clear
clear
()
:
void
Returns
void
entries
entries
()
:
ConfigEntry
[]
Returns
ConfigEntry
[]
for
Each
forEach
(
actionFn
:
(
key
:
string
,
value
:
AnyJson
)
=>
void
)
:
void
Parameters
actionFn
:
(
key
:
string
,
value
:
AnyJson
)
=>
void
Returns
void
get
get
<
K
extends
string
>
(
key
:
K
,
decrypt
:
boolean
)
:
P
[
K
]
Type Parameters
K
extends
string
Parameters
key
:
K
decrypt
:
boolean
Returns
P
[
K
]
get
<
T
extends
AnyJson
>
(
key
:
string
,
decrypt
:
boolean
)
:
T
Type Parameters
T
extends
AnyJson
Parameters
key
:
string
decrypt
:
boolean
Returns
T
get
Contents
getContents
()
:
P
Returns
P
get
Keys
By
Value
getKeysByValue
(
value
:
AnyJson
)
:
Key
<
P
>
[]
Parameters
value
:
AnyJson
Returns
Key
<
P
>
[]
has
has
(
key
:
string
)
:
boolean
Parameters
key
:
string
Returns
boolean
keys
keys
()
:
Key
<
P
>
[]
Returns
Key
<
P
>
[]
set
set
<
K
extends
string
>
(
key
:
K
,
value
:
P
[
K
]
)
:
void
Type Parameters
K
extends
string
Parameters
key
:
K
value
:
P
[
K
]
Returns
void
set
<
T
extends
AnyJson
>
(
key
:
string
,
value
:
T
)
:
void
Type Parameters
T
extends
AnyJson
Parameters
key
:
string
value
:
T
Returns
void
unset
unset
(
key
:
string
)
:
boolean
Parameters
key
:
string
Returns
boolean
unset
All
unsetAll
(
keys
:
string
[]
)
:
boolean
Parameters
keys
:
string
[]
Returns
boolean
update
update
<
K
extends
string
>
(
key
:
K
,
value
:
Partial
<
P
[
K
]
>
)
:
void
Type Parameters
K
extends
string
Parameters
key
:
K
value
:
Partial
<
P
[
K
]
>
Returns
void
update
<
T
extends
AnyJson
>
(
key
:
string
,
value
:
Partial
<
T
>
)
:
void
Type Parameters
T
extends
AnyJson
Parameters
key
:
string
value
:
Partial
<
T
>
Returns
void
values
values
()
:
AnyJson
[]
Returns
AnyJson
[]
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
Methods
clear
entries
for
Each
get
get
Contents
get
Keys
By
Value
has
keys
set
unset
unset
All
update
values
@salesforce/core
Loading...
An interface for a config object with a persistent store.