Skip to content

Commit 09ee5a1

Browse files
committed
Fix missing buffer type error
Users may need to include dom in their tsconfig.json if they run into errors with Blob not found
1 parent 30a1977 commit 09ee5a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/node/index.d.ts.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ declare module "{{ language.params.npmPackage|caseDash }}" {
131131

132132
static fromBuffer(buffer: Buffer, filename: string): InputFile;
133133

134-
static fromBlob(blob: buffer.Blob, filename: string): Promise<InputFile>;
134+
static fromBlob(blob: Blob, filename: string): Promise<InputFile>;
135135

136136
static fromStream(stream: NodeJS.ReadableStream, filename: string, size: number): InputFile;
137137

0 commit comments

Comments
 (0)