/** * @category loader */ type LoadSuccessParams = Parameters<(error: null | undefined, asset: T) => void>; type LoadErrorParams = Parameters<(error: Error) => void>; export type LoadCallbackParams = LoadSuccessParams | LoadErrorParams; export type LoadCompleteCallback = (...args: LoadCallbackParams) => void; export type LoadProgressCallback = (completedCount: number, totalCount: number, item: any) => void;