Skip to content

Instantly share code, notes, and snippets.

@Dok11
Created May 7, 2017 18:55
Show Gist options
  • Save Dok11/e6d24b5e199028ffc3f782b6bd1c2e62 to your computer and use it in GitHub Desktop.
Save Dok11/e6d24b5e199028ffc3f782b6bd1c2e62 to your computer and use it in GitHub Desktop.
TypeScript class for Bitrix image from \CFile::GetFileArray();
/**
* Интерфейс картинок из бекенда битрикса.
* Требует доработки на бекенде, т.к. по умолчанию битрикс всё возвращает
* строками
*/
export class BxImage {
ID: number;
TIMESTAMP_X: string;
MODULE_ID: string;
HEIGHT: number;
WIDTH: number;
FILE_SIZE: number;
CONTENT_TYPE: string;
SUBDIR: string;
FILE_NAME: string;
ORIGINAL_NAME: string;
DESCRIPTION: string;
HANDLER_ID: string;
EXTERNAL_ID: string;
SRC: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment