Documentation - v0.0.19
Examples
Github
Preparing search index...
@ak2021/store
Store
Class Store
Index
Constructors
constructor
Properties
options
Methods
emit
off
on
once
Constructors
constructor
new
Store
(
options
?:
Partial
<
StoreOptions
>
)
:
Store
Parameters
options
:
Partial
<
StoreOptions
>
= {}
Returns
Store
Properties
options
options
:
StoreOptions
Methods
emit
emit
<
T
=
unknown
>
(
type
:
string
,
data
?:
T
)
:
this
Type Parameters
T
=
unknown
Parameters
type
:
string
Optional
data
:
T
Returns
this
off
off
<
T
=
unknown
>
(
type
:
string
,
fn
?:
EventListener
<
T
>
)
:
this
Type Parameters
T
=
unknown
Parameters
type
:
string
Optional
fn
:
EventListener
<
T
>
Returns
this
on
on
<
T
=
unknown
>
(
type
:
string
,
fn
:
EventListener
<
T
>
)
:
this
Type Parameters
T
=
unknown
Parameters
type
:
string
fn
:
EventListener
<
T
>
Returns
this
once
once
<
T
=
unknown
>
(
type
:
string
,
fn
:
EventListener
<
T
>
)
:
this
Type Parameters
T
=
unknown
Parameters
type
:
string
fn
:
EventListener
<
T
>
Returns
this
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
options
Methods
emit
off
on
once
Examples
Github
Documentation - v0.0.19
Loading...