Use internal type util to align types
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user