diff --git a/src/state/queries/postgate/util.ts b/src/state/queries/postgate/util.ts index 96762d38cb..639d784ed3 100644 --- a/src/state/queries/postgate/util.ts +++ b/src/state/queries/postgate/util.ts @@ -5,6 +5,7 @@ import { AppBskyFeedPostgate, AtUri, } from '@atproto/api' +import {$Typed} from '@atproto/api/dist/client/util' export const POSTGATE_COLLECTION = 'app.bsky.feed.postgate' @@ -95,7 +96,7 @@ export function createMaybeDetachedQuoteEmbed({ export function createEmbedViewRecordFromPost( post: AppBskyFeedDefs.PostView, -): AppBskyEmbedRecord.ViewRecord { +): $Typed { return { $type: 'app.bsky.embed.record#viewRecord', uri: post.uri,