Type Alias IHttpFileCollection

IHttpFileCollection: Iterable<IHttpFile> & {
    count: number;
    isEmpty: boolean;
    first(): null | IHttpFile;
    firstOrFail(): IHttpFile;
    get(index: number): null | IHttpFile;
    getOrFail(index: number): IHttpFile;
}

A collection of validated uploaded files for a single file field.

Provides safe (get, first) and throwing (getOrFail, firstOrFail) accessors, iteration via for...of, and inspection of the file count.

IMPORT_PATH: "@daiso-tech/core/http-router/contracts"

Type declaration