Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICallback<T, O>

Type Parameters

  • T = void

  • O = void

Hierarchy

Index

Methods

  • onError(error: ErrorCode, data?: unknown): void
  • 失败回调

    Parameters

    Returns void

  • onSuccess(data: T, other?: O): void
  • 成功回调

    Parameters

    • data: T
    • Optional other: O

    Returns void