UNPKG

file-input-accessor

Version:

Angular directive that provides file input functionality in reactive & template driven Angular forms.

22 lines (21 loc) 589 B
import { ReplaySubject } from 'rxjs'; export interface ICustomFile extends File { errors?: { imageWidth?: boolean; imageHeight?: boolean; maxWidth?: boolean; maxHeight?: boolean; minWidth?: boolean; minHeight?: boolean; fileSize?: boolean; fileType?: boolean; fileExt?: boolean; }; imgSrc?: string; imgHeight?: number; imgWidth?: number; isImg?: boolean; imgLoadReplay?: ReplaySubject<[Event, ProgressEvent]>; textContent?: string; textLoadReplay?: ReplaySubject<ProgressEvent>; }