(fn: () => T, workspace?: string)
| 2 | import { getActor } from "./auth" |
| 3 | |
| 4 | export async function withActor<T>(fn: () => T, workspace?: string) { |
| 5 | const actor = await getActor(workspace) |
| 6 | return Actor.provide(actor.type, actor.properties, fn) |
| 7 | } |
no test coverage detected