Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
fix(types): proxies is an array (#20)
Browse files Browse the repository at this point in the history
fixes #19
  • Loading branch information
maxbeatty authored Oct 1, 2024
1 parent aaeeef7 commit 86f0a90
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/selfish-balloons-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@browserbasehq/sdk': patch
---

Fix type for custom proxies
26 changes: 14 additions & 12 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,20 @@ export type CreateSessionOptions = {
timeout?: number
proxies?:
| boolean
| {
type: 'browserbase'
geolocation?: { country: string; state?: string; city?: string }
domainPattern?: string
}
| {
type: 'external'
server: string
domainPattern?: string
username?: string
password?: string
}
| Array<
| {
type: 'browserbase'
geolocation?: { country: string; state?: string; city?: string }
domainPattern?: string
}
| {
type: 'external'
server: string
domainPattern?: string
username?: string
password?: string
}
>
}

export type Session = {
Expand Down

0 comments on commit 86f0a90

Please sign in to comment.