Skip to content

Commit

Permalink
Update ChunkUploadHandler type
Browse files Browse the repository at this point in the history
  • Loading branch information
a179346 committed Feb 29, 2024
1 parent 5735ef1 commit 911e57b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nextjs-chunk-upload-action",
"version": "3.1.0",
"version": "4.0.0",
"description": "Uploading large files with chunking using server action in Next.js",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface ChunkFormData {
get(name: 'isLastChunk'): 'true' | 'false';
}

export type ChunkUploadHandler<TMetadata extends Metadata = undefined> = (
export type ChunkUploadHandler<TMetadata extends Metadata = Metadata> = (
chunkFormData: ChunkFormData,
metadata: TMetadata
) => Promise<void>;
Expand Down

0 comments on commit 911e57b

Please sign in to comment.