Loosen types a bit

This commit is contained in:
Eric Bailey
2025-02-05 11:03:25 -06:00
parent f6b21057b9
commit 155be6467a
+5 -2
View File
@@ -8,6 +8,7 @@ import {
AtUri, AtUri,
BskyAgent, BskyAgent,
ComAtprotoRepoUploadBlob, ComAtprotoRepoUploadBlob,
Un$Typed,
} from '@atproto/api' } from '@atproto/api'
import { import {
QueryClient, QueryClient,
@@ -117,8 +118,10 @@ export function usePrefetchProfileQuery() {
interface ProfileUpdateParams { interface ProfileUpdateParams {
profile: AppBskyActorDefs.ProfileViewDetailed profile: AppBskyActorDefs.ProfileViewDetailed
updates: updates:
| AppBskyActorProfile.Record | Un$Typed<AppBskyActorProfile.Record>
| ((existing: AppBskyActorProfile.Record) => AppBskyActorProfile.Record) | ((
existing: Un$Typed<AppBskyActorProfile.Record>,
) => Un$Typed<AppBskyActorProfile.Record>)
newUserAvatar?: RNImage | undefined | null newUserAvatar?: RNImage | undefined | null
newUserBanner?: RNImage | undefined | null newUserBanner?: RNImage | undefined | null
checkCommitted?: (res: AppBskyActorGetProfile.Response) => boolean checkCommitted?: (res: AppBskyActorGetProfile.Response) => boolean