Use internal type util to align types

This commit is contained in:
Eric Bailey
2025-01-02 17:49:34 -06:00
parent 288ecbdd85
commit fa5d130259
+2 -1
View File
@@ -5,6 +5,7 @@ import {
AppBskyFeedPostgate, AppBskyFeedPostgate,
AtUri, AtUri,
} from '@atproto/api' } from '@atproto/api'
import {$Typed} from '@atproto/api/dist/client/util'
export const POSTGATE_COLLECTION = 'app.bsky.feed.postgate' export const POSTGATE_COLLECTION = 'app.bsky.feed.postgate'
@@ -95,7 +96,7 @@ export function createMaybeDetachedQuoteEmbed({
export function createEmbedViewRecordFromPost( export function createEmbedViewRecordFromPost(
post: AppBskyFeedDefs.PostView, post: AppBskyFeedDefs.PostView,
): AppBskyEmbedRecord.ViewRecord { ): $Typed<AppBskyEmbedRecord.ViewRecord> {
return { return {
$type: 'app.bsky.embed.record#viewRecord', $type: 'app.bsky.embed.record#viewRecord',
uri: post.uri, uri: post.uri,