Загрузка приложения

IProfileAvatarResponse

Физическое объявление TypeScript из стартового проекта Nuxt со связанными типами и комментариями к полям.

IProfileAvatarResponse

Ответ загрузки изображения профиля.

src/lib/interfaces/orionplace/accounts/IProfileMedia.ts
TypeScript
export interface IProfileAvatarResponse {
  // Ошибки полей или общие ошибки; null при успехе.
  form_errors: Record<string, ApiFormError[]> | null;
  // Сообщение об успехе или null.
  success_message: string | null;
  // URL сохранённого аватара.
  page_data: {
    // URL сохранённого изображения профиля.
    avatar: string | null;
  } | null;
}