Amazon Vinyl
Preparing search index...
@amazon/vinyl-util
GetOrSetMap
Interface GetOrSetMap<K, V>
The minimal
Map
-shaped interface that
getOrSet
needs.
interface
GetOrSetMap
<
K
,
V
>
{
get
(
key
:
K
)
:
V
|
undefined
;
has
(
key
:
K
)
:
boolean
;
set
(
key
:
K
,
value
:
V
)
:
unknown
;
}
Type Parameters
K
V
Index
Methods
get
has
set
Methods
get
get
(
key
:
K
)
:
V
|
undefined
Parameters
key
:
K
Returns
V
|
undefined
has
has
(
key
:
K
)
:
boolean
Parameters
key
:
K
Returns
boolean
set
set
(
key
:
K
,
value
:
V
)
:
unknown
Parameters
key
:
K
value
:
V
Returns
unknown
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
get
has
set
Amazon Vinyl
Loading...
The minimal
Map-shaped interface that getOrSet needs.