import IField from './' ; export interface IFileStruct { name : string ; type : string ; value : ArrayBuffer ; } export interface IFileData { Name : string ; MimeType : string ; Body : ArrayBuffer ; } class File implements IField < IFileStruct , IFileData > { private _value : IFileStruct ; set ( value ) { this . _value = value ; } get ( ) { return this . _value ? { Name : this . _value . name , MimeType : this . _value . type , Body : this . _value . value } : null ; } } export default File ;