bn.onUnhandledRejection
• onUnhandledRejection: (cb: UnhandledRejectionCallback) => void
Type declaration
▸ (cb): void
Parameters
| Name | Type |
|---|---|
cb | UnhandledRejectionCallback |
Returns
void
UnhandledRejectionCallback
Ƭ UnhandledRejectionCallback: (payload: OnUnhandledRejectionCallbackResult) => void
Type declaration
▸ (payload): void
Parameters
| Name | Type |
|---|---|
payload | OnUnhandledRejectionCallbackResult |
Returns
void
Interface: OnUnhandledRejectionCallbackResult
| Name | Type | Description |
|---|---|---|
| promise | Promise<unknown> | |
| reason | string |