Documentation
Preparing search index...
@restatedev/restate-sdk-testcontainers
StateProxy
Class StateProxy<TState>
Type Parameters
TState
extends
TypedState
Index
Constructors
constructor
Methods
get
get
All
set
set
All
Constructors
constructor
new
StateProxy
<
TState
extends
TypedState
>
(
adminAPIBaseUrl
:
string
,
service
:
string
,
serviceKey
:
string
,
)
:
StateProxy
<
TState
>
Type Parameters
TState
extends
TypedState
Parameters
adminAPIBaseUrl
:
string
service
:
string
serviceKey
:
string
Returns
StateProxy
<
TState
>
Methods
get
get
<
TValue
,
TKey
extends
string
|
number
|
symbol
=
string
>
(
name
:
TState
extends
UntypedState
?
string
:
TKey
,
serde
?:
Serde
<
TState
extends
UntypedState
?
TValue
:
TState
[
TKey
]
>
,
)
:
Promise
<
null
|
(
TState
extends
UntypedState
?
TValue
:
TState
[
TKey
]
)
>
Type Parameters
TValue
TKey
extends
string
|
number
|
symbol
=
string
Parameters
name
:
TState
extends
UntypedState
?
string
:
TKey
Optional
serde
:
Serde
<
TState
extends
UntypedState
?
TValue
:
TState
[
TKey
]
>
Returns
Promise
<
null
|
(
TState
extends
UntypedState
?
TValue
:
TState
[
TKey
]
)
>
get
All
getAll
<
TValues
extends
TypedState
>
(
serde
?:
Serde
<
TState
extends
UntypedState
?
TValues
[
keyof
TValues
]
:
TState
[
keyof
TState
]
,
>
,
)
:
Promise
<
TState
extends
UntypedState
?
TValues
:
TState
>
Type Parameters
TValues
extends
TypedState
Parameters
Optional
serde
:
Serde
<
TState
extends
UntypedState
?
TValues
[
keyof
TValues
]
:
TState
[
keyof
TState
]
,
>
Returns
Promise
<
TState
extends
UntypedState
?
TValues
:
TState
>
set
set
<
TValue
,
TKey
extends
string
|
number
|
symbol
=
string
>
(
name
:
TState
extends
UntypedState
?
string
:
TKey
,
value
:
TState
extends
UntypedState
?
TValue
:
TState
[
TKey
]
,
serde
?:
Serde
<
TState
extends
UntypedState
?
TValue
:
TState
[
TKey
]
>
,
)
:
Promise
<
void
>
Type Parameters
TValue
TKey
extends
string
|
number
|
symbol
=
string
Parameters
name
:
TState
extends
UntypedState
?
string
:
TKey
value
:
TState
extends
UntypedState
?
TValue
:
TState
[
TKey
]
Optional
serde
:
Serde
<
TState
extends
UntypedState
?
TValue
:
TState
[
TKey
]
>
Returns
Promise
<
void
>
set
All
setAll
<
TValues
extends
TypedState
>
(
values
:
TState
extends
UntypedState
?
TValues
:
TState
,
serde
?:
Serde
<
TState
extends
UntypedState
?
TValues
[
keyof
TValues
]
:
TState
[
keyof
TState
]
,
>
,
)
:
Promise
<
void
>
Type Parameters
TValues
extends
TypedState
Parameters
values
:
TState
extends
UntypedState
?
TValues
:
TState
Optional
serde
:
Serde
<
TState
extends
UntypedState
?
TValues
[
keyof
TValues
]
:
TState
[
keyof
TState
]
,
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
get
get
All
set
set
All
Documentation
Loading...