@atproto/api
Version:
Client library for atproto and Bluesky
13 lines • 472 B
JavaScript
import { AtpAgent } from './atp-agent.js';
/** @deprecated use {@link AtpAgent} instead */
export class BskyAgent extends AtpAgent {
clone() {
if (this.constructor === BskyAgent) {
const agent = new BskyAgent(this.sessionManager);
return this.copyInto(agent);
}
// sub-classes should override this method
throw new TypeError('Cannot clone a subclass of BskyAgent');
}
}
//# sourceMappingURL=bsky-agent.js.map