ts-sdk

callback.d.ts 277B

123456789101112
  1. export interface readyStateCallback {
  2. onopen(ev: Event): any;
  3. onerror(ev: Event): any;
  4. onclose(ev: Event): any;
  5. }
  6. export interface callback {
  7. onStart(): any;
  8. onSuccess(data: string): any;
  9. onError(code: number, message: string): any;
  10. onEnd(): any;
  11. }