You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

baseMethod.d.ts 805B

123456789101112131415161718192021222324252627282930313233343536
  1. import type { Request } from '.';
  2. export interface BaseRequest {
  3. [x: string]: unknown;
  4. id?: number | string;
  5. command: string;
  6. api_version?: number;
  7. }
  8. interface Warning {
  9. id: number;
  10. message: string;
  11. details?: {
  12. [key: string]: string;
  13. };
  14. }
  15. export interface BaseResponse {
  16. id: number | string;
  17. status?: 'success' | string;
  18. type: 'response' | string;
  19. result: unknown;
  20. warning?: 'load';
  21. warnings?: Warning[];
  22. forwarded?: boolean;
  23. api_version?: number;
  24. }
  25. export interface ErrorResponse {
  26. id: number | string;
  27. status: 'error';
  28. type: 'response' | string;
  29. error: string;
  30. error_code?: string;
  31. error_message?: string;
  32. request: Request;
  33. api_version?: number;
  34. }
  35. export {};
  36. //# sourceMappingURL=baseMethod.d.ts.map