Skip to content

Commit 934492d

Browse files
soedirgoinian
authored andcommitted
fix: typo
in case it wasn't intentional
1 parent dd2800e commit 934492d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class FunctionsClient {
5050
const { responseType } = invokeOptions ?? {}
5151
if (!responseType || responseType === 'json') {
5252
data = await response.json()
53-
} else if (responseType === 'arraybuffer') {
53+
} else if (responseType === 'arrayBuffer') {
5454
data = await response.arrayBuffer()
5555
} else if (responseType === 'blob') {
5656
data = await response.blob()

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export type Fetch = typeof crossFetch
55
export enum ResponseType {
66
json,
77
text,
8-
arraybuffer,
8+
arrayBuffer,
99
blob,
1010
}
1111

0 commit comments

Comments
 (0)