Prism API
Home
GitHub
Preparing search index...
core/hook-state
HookState
Class HookState
A simple typed map from some key to its data.
Index
Constructors
constructor
Methods
get
has
set
Constructors
constructor
new
HookState
()
:
HookState
Returns
HookState
Methods
get
get
<
T
extends
{}
>
(
key
:
StateKey
<
T
>
,
defaultValue
:
T
)
:
T
Type Parameters
T
extends
{}
Parameters
key
:
StateKey
<
T
>
defaultValue
:
T
Returns
T
has
has
(
key
:
StateKey
<
{}
>
)
:
boolean
Parameters
key
:
StateKey
<
{}
>
Returns
boolean
set
set
<
T
extends
{}
>
(
key
:
StateKey
<
T
>
,
value
:
T
)
:
void
Type Parameters
T
extends
{}
Parameters
key
:
StateKey
<
T
>
value
:
T
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
get
has
set
Home
GitHub
Prism API
Loading...
A simple typed map from some key to its data.