Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

CommonErrorType

CommonErrorType: { errorAction?: ErrorAction | ErrorAction[]; errorTitle?: string }

Type declaration

  • Optional errorAction?: ErrorAction | ErrorAction[]

    错误动作, 用于做一些错误处理, 例如, 断开重连, 或者返回给插件用于自定义错误处理(例如, wifi 配网等)

  • Optional errorTitle?: string

    错误标题, 用于优化错误弹窗的标题显示

ErrorAction

ErrorAction: { id: string; name?: string; type?: "cancel" | "confirm" }

Type declaration

  • id: string
  • Optional name?: string
  • Optional type?: "cancel" | "confirm"

ErrorMessageTemplate

ErrorMessageTemplate: { src?: string; text?: string; type: "image" } | { content: string; type: "markdown" }

ExtraData

用于支持 UCode 错误的新特性

ImageErrorType

ImageErrorType: CommonErrorType & { image: string; type: "image" }

MarkdownErrorType

MarkdownErrorType: CommonErrorType & { content: string; type: "markdown" }

TextErrorType

TextErrorType: CommonErrorType & { type?: "text" }

Generated using TypeDoc