Skip to content

Commit be6962a

Browse files
committed
fix: FunctionsClient constructor default options
1 parent f687284 commit be6962a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ export class FunctionsClient {
99
constructor(
1010
url: string,
1111
{
12-
headers = {},
12+
headers,
1313
customFetch,
1414
}: {
1515
headers?: Record<string, string>
1616
customFetch?: Fetch
17-
}
17+
} = {}
1818
) {
1919
this.url = url
20-
this.headers = headers
20+
this.headers = headers ?? {}
2121
this.fetch = resolveFetch(customFetch)
2222
}
2323

0 commit comments

Comments
 (0)