Type Definitions
Promise
Properties:
Name | Type | Description |
---|---|---|
then |
function |
Normal callback. Parameter: IMResponse |
catch |
function |
Exception callback. Parameter: IMError |
IMResponse
Properties:
Name | Type | Description |
---|---|---|
code |
String |
Return code. Value: 0 |
data |
* |
API data |
IMError
Properties:
Name | Type | Description |
---|---|---|
code |
String |
Error code |
message |
String |
Error information |
stack |
Object |
Error stack information |
Error object
IMEvent
Properties:
Name | Type | Description |
---|---|---|
name |
String |
Event name |
data |
* |
Event data |
Event object type, returned when listening for a function response