Skip to content

Commit 911e57b

Browse files
committed
Update ChunkUploadHandler type
1 parent 5735ef1 commit 911e57b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nextjs-chunk-upload-action",
3-
"version": "3.1.0",
3+
"version": "4.0.0",
44
"description": "Uploading large files with chunking using server action in Next.js",
55
"main": "dist/index.js",
66
"scripts": {

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface ChunkFormData {
1515
get(name: 'isLastChunk'): 'true' | 'false';
1616
}
1717

18-
export type ChunkUploadHandler<TMetadata extends Metadata = undefined> = (
18+
export type ChunkUploadHandler<TMetadata extends Metadata = Metadata> = (
1919
chunkFormData: ChunkFormData,
2020
metadata: TMetadata
2121
) => Promise<void>;

0 commit comments

Comments
 (0)