Add todos for sdk migration

This commit is contained in:
Eric Bailey
2025-12-03 21:32:57 -06:00
parent bafceea0f9
commit 72797de4e3
7 changed files with 8 additions and 0 deletions
+1
View File
@@ -163,6 +163,7 @@ export async function resolveLink(
const res = await agent.resolveHandle({
handle: urip.host,
})
// @ts-expect-error TODO new-sdk-migration
urip.host = res.data.did
}
const res = await agent.getPosts({
+1
View File
@@ -42,6 +42,7 @@ export function makeRecordUri(
rkey: string,
) {
const urip = new AtUri('at://placeholder.placeholder/')
// @ts-expect-error TODO new-sdk-migration
urip.host = didOrName
urip.collection = collection
urip.rkey = rkey
+2
View File
@@ -26,6 +26,7 @@ export function usePostQuery(uri: string | undefined) {
const res = await agent.resolveHandle({
handle: urip.host,
})
// @ts-expect-error TODO new-sdk-migration
urip.host = res.data.did
}
@@ -54,6 +55,7 @@ export function useGetPost() {
const res = await agent.resolveHandle({
handle: urip.host,
})
// @ts-expect-error TODO new-sdk-migration
urip.host = res.data.did
}
+1
View File
@@ -36,6 +36,7 @@ export async function getPostgateRecord({
const res = await agent.resolveHandle({
handle: urip.host,
})
// @ts-expect-error TODO new-sdk-migration
urip.host = res.data.did
}
+1
View File
@@ -17,6 +17,7 @@ export function useResolveUriQuery(uri: string | undefined): UriUseQueryResult {
const urip = new AtUri(uri || '')
const res = useResolveDidQuery(urip.host)
if (res.data) {
// @ts-expect-error TODO new-sdk-migration
urip.host = res.data
return {
...res,
+1
View File
@@ -97,6 +97,7 @@ export async function getThreadgateRecord({
const res = await agent.resolveHandle({
handle: urip.host,
})
// @ts-expect-error TODO new-sdk-migration
urip.host = res.data.did
}
+1
View File
@@ -81,6 +81,7 @@ export function useUnstablePostSource(key: string) {
*/
export function buildPostSourceKey(key: string, handle: string) {
const urip = new AtUri(key)
// @ts-expect-error TODO new-sdk-migration
urip.host = handle
return urip.toString()
}