style fixed

This commit is contained in:
Sergio Mendonça
2018-08-22 10:39:13 -03:00
parent e9e42011cd
commit e68bc50e6e

View File

@ -9,8 +9,13 @@ interface IHackedFile {
}
export class Media {
public static addImage(file: File, buffer: Buffer | string | Uint8Array | ArrayBuffer, width?: number, height?: number, drawingOptions?: IDrawingOptions): Image {
public static addImage(
file: File,
buffer: Buffer | string | Uint8Array | ArrayBuffer,
width?: number,
height?: number,
drawingOptions?: IDrawingOptions,
): Image {
// Workaround to expose id without exposing to API
const exposedFile = (file as {}) as IHackedFile;
const mediaData = file.Media.addMedia(buffer, exposedFile.currentRelationshipId++, width, height);