跳到主要内容

bn.callSync

callSync<Payload, Response>(actionName, payload?): Response

description Call an custom action synchronous. If the plugin of custom action not ready, it will throw an error.

example

try {
const response = bn.callSync("private-BIDS-social-login",{})
} catch(e) {
console.error(e)
}

Type parameters

NameType
Payloadextends Data
Responseextends void | Data

Parameters

NameType
actionNamestring
payload?Payload

Returns

Response


Data

Ƭ Data: Object