Skip to content

@maxhealth.tech/prefab / actions / SetState

Class: SetState ​

Defined in: actions/client.ts:16

Base interface all actions implement

Implements ​

Constructors ​

Constructor ​

ts
new SetState(
   key, 
   value, 
   opts?): SetState;

Defined in: actions/client.ts:17

Parameters ​

ParameterType
keystring
valueunknown
opts?SetStateOpts

Returns ​

SetState

Properties ​

key ​

ts
readonly key: string;

Defined in: actions/client.ts:18


value ​

ts
readonly value: unknown;

Defined in: actions/client.ts:19

Methods ​

toJSON() ​

ts
toJSON(): ActionJSON;

Defined in: actions/client.ts:23

Returns ​

ActionJSON

Implementation of ​

Action.toJSON

Released under the MIT License.