UNPKG

@oslokommune/punkt-elements

Version:

Komponentbiblioteket til Punkt, et designsystem laget av Oslo Origo

12 lines (11 loc) 479 B
import type { IFileItem, IFileTransfer } from '../../shared-types'; export interface IFileUploadCounts { totalCount: number; uploadedCount: number; failedCount: number; } /** * Count how many files have reached `done` vs `error` based on the supplied * transfer list. Pure — both runtimes share this for their aria-live summaries. */ export declare function countFileTransferStates(files: IFileItem[], transfers: IFileTransfer[] | undefined): IFileUploadCounts;