Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion resumable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ declare namespace Resumable {
/**
* Override the function that generates unique identifiers for each file. (Default: null)
**/
generateUniqueIdentifier?: () => string;
generateUniqueIdentifier?: (() => string) | ((file: BackwardCompatibleDOMFile) => string) | ((file: BackwardCompatibleDOMFile, event: Event) => string);
/**
* Indicates how many files can be uploaded in a single session. Valid values are any positive integer and undefined for no limit. (Default: undefined)
**/
Expand Down Expand Up @@ -367,6 +367,13 @@ declare namespace Resumable {
}

interface ResumableChunk { }

/* To deal with some confusion in different versions of Firefox*/
interface BackwardCompatibleDOMFile extends File {
readonly webkitRelativePath: string;
readonly relativePath: string;
readonly fileName: string;
}
}

declare module 'resumablejs' {
Expand Down