Skip to content

Commit 8c88d0c

Browse files
committed
Avoid using Buffer type since it's for node.js only
1 parent e9f11a7 commit 8c88d0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/definitions/Attachment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface Attachment {
1111
* Binary content of the file
1212
* Required
1313
*/
14-
content?: string | Buffer | Blob | NodeJS.ReadableStream;
14+
content?: string | Uint8Array | Blob | AsyncIterable<Uint8Array>;
1515

1616
/**
1717
* Content type of the file, such as "image/png"

packages/core/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ export interface FormFile {
6161
name: string;
6262
filename: string;
6363
contentType: string;
64-
content: string | Buffer | Blob | NodeJS.ReadableStream;
64+
content: string | Uint8Array | Blob | AsyncIterable<Uint8Array>;
6565
}

0 commit comments

Comments
 (0)