Class: StreamTriggerOutput
moralis-monorepo / @moralisweb3/common-streams-utils / StreamTriggerOutput
Class: StreamTriggerOutput
@moralisweb3/common-streams-utils.StreamTriggerOutput
The StreamTrigger class is a representation of a stream trigger that is used by the Moralis Stream API
Implements
MoralisDataObject
Table of contents
Methods
Constructors
Accessors
Methods
arrayEquals
▸ Static arrayEquals(valueA, valueB): boolean
Compares two StreamTriggerOutput arrays. It checks a deep equality check of both values, meaning that all the values have to be on both arrays.
Example
StreamTriggerOutput.arrayEquals(valueA, valueB);
Parameters
| Name | Type | Description |
|---|---|---|
valueA | StreamTriggerOutputish[] | the first StreamTriggerOutputish[] data to compare |
valueB | StreamTriggerOutputish[] | the second StreamTriggerOutputish[] data to compare |
Returns
boolean
true if all values are equal, false otherwise
create
▸ Static create(data): StreamTriggerOutput
Parameters
| Name | Type |
|---|---|
data | StreamTriggerOutputish |
Returns
equals
▸ Static equals(valueA, valueB): boolean
Compares two StreamTriggerOutput data. It checks a deep equality check of both values.
Example
StreamTriggerOutput.equals(valueA, valueB);
Parameters
| Name | Type | Description |
|---|---|---|
valueA | StreamTriggerOutputish | the first StreamTriggerOutputish data to compare |
valueB | StreamTriggerOutputish | the second StreamTriggerOutputish data to compare |
Returns
boolean
true if the values are equal, false otherwise
equals
▸ equals(value): boolean
Compares an StreamTriggerOutputish data to this StreamTriggerOutput instance.
Example
streamTriggerOutput.equals(value);
Parameters
| Name | Type | Description |
|---|---|---|
value | StreamTriggerOutputish | the value to compare |
Returns
boolean
true if the value is equal to the current instance, false otherwise
Implementation of
MoralisDataObject.equals
format
▸ format(): StreamTriggerOutputJSON
Deprecated
This method will be removed soon. To format the value, use one of the properties.
Returns
Implementation of
MoralisDataObject.format
toJSON
▸ toJSON(): StreamTriggerOutputJSON
Converts the StreamTriggerOutput instance to a JSON object.
Example
streamTriggerOutput.toJSON()
Returns
JSON object of the StreamTriggerOutput instance
Implementation of
MoralisDataObject.toJSON
Constructors
constructor
• new StreamTriggerOutput(data)
Parameters
| Name | Type |
|---|---|
data | StreamTriggerOutputInput |
Accessors
name
• get name(): string
Returns
string
value
• get value(): string
Returns
string