Run codemod for replacing BskyAgent with AtpAgent (#10862)

This commit is contained in:
DS Boyce
2026-06-11 08:46:01 -07:00
committed by GitHub
parent e3e7db2350
commit c8634105c1
37 changed files with 195 additions and 134 deletions
+4 -4
View File
@@ -4,8 +4,8 @@ import {
AppBskyEmbedRecordWithMedia,
type AppBskyFeedDefs,
AppBskyFeedPostgate,
type AtpAgent,
AtUri,
type BskyAgent,
} from '@atproto/api'
import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query'
@@ -27,7 +27,7 @@ export async function getPostgateRecord({
agent,
postUri,
}: {
agent: BskyAgent
agent: AtpAgent
postUri: string
}): Promise<AppBskyFeedPostgate.Record | undefined> {
const urip = new AtUri(postUri)
@@ -89,7 +89,7 @@ export async function writePostgateRecord({
postUri,
postgate,
}: {
agent: BskyAgent
agent: AtpAgent
postUri: string
postgate: AppBskyFeedPostgate.Record
}) {
@@ -110,7 +110,7 @@ export async function upsertPostgate(
agent,
postUri,
}: {
agent: BskyAgent
agent: AtpAgent
postUri: string
},
callback: (