cast branded params with the dedicated syntax types

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-08-03 15:51:44 +03:00
parent 935935518a
commit 6ef3628155
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -52,6 +52,7 @@ import {
type RichText,
} from '@atproto/api'
import {type Client} from '@atproto/lex'
import {type AtUriString} from '@atproto/syntax'
import {plural} from '@lingui/core/macro'
import {Trans, useLingui} from '@lingui/react/macro'
import {useNavigation} from '@react-navigation/native'
@@ -1109,8 +1110,7 @@ export const ComposePost = ({
const res = await client.call(
app.bsky.unspecced.getPostThreadV2,
{
anchor:
postUri! as app.bsky.unspecced.getPostThreadV2.$Params['anchor'],
anchor: postUri! as AtUriString,
above: false,
below: filteredThread.posts.length - 1,
branchingFactor: 1,
@@ -2502,7 +2502,7 @@ async function whenAppViewReady(
fn,
() =>
client.call(app.bsky.unspecced.getPostThreadV2, {
anchor: uri as app.bsky.unspecced.getPostThreadV2.$Params['anchor'],
anchor: uri as AtUriString,
above: false,
below: 0,
branchingFactor: 0,