made image take in IData instead of image path

This commit is contained in:
Dolan
2017-03-29 22:47:34 +01:00
parent ad462dfe10
commit 15009884e3
3 changed files with 12 additions and 11 deletions

8
ts/media/data.ts Normal file
View File

@ -0,0 +1,8 @@
import * as fs from "fs";
export interface IData {
referenceId: number;
stream: fs.ReadStream;
path: string;
fileName: string;
}

View File

@ -1,12 +1,6 @@
import * as fs from "fs";
import * as path from "path";
interface IData {
referenceId: number;
stream: fs.ReadStream;
path: string;
fileName: string;
}
import { IData } from "./data";
export class Media {
private map: Map<string, IData>;