Skip to main content

bn.offError

offError: (cb: AppErrorCallback) => void

description Un-listens on Mini Program error event.

example

const handler = (error: string) => {}bn.onError(handler)bn.offError(handler)

Type declaration

▸ (cb): void

Parameters

NameType
cbAppErrorCallback

Returns

void


AppErrorCallback#

Ƭ AppErrorCallback: (error: string) => void

Type declaration

▸ (error): void

Parameters

NameType
errorstring

Returns

void