(page: Page)
| 85 | } |
| 86 | |
| 87 | function currentUser(page: Page): LoginOptions { |
| 88 | const ctx = page.context(); |
| 89 | // biome-ignore lint/suspicious/noExplicitAny: get the current user |
| 90 | const user = (ctx as any)[Symbol.for("currentUser")]; |
| 91 | |
| 92 | if (!user) { |
| 93 | throw new Error("page context does not have a user. did you call `login`?"); |
| 94 | } |
| 95 | |
| 96 | return user; |
| 97 | } |
| 98 | |
| 99 | type CreateWorkspaceOptions = { |
| 100 | richParameters?: RichParameter[]; |
no outgoing calls
no test coverage detected