Use asPredicate

This commit is contained in:
Eric Bailey
2025-02-05 11:06:45 -06:00
parent 62ecada300
commit 3a9f4c4e38
+2 -1
View File
@@ -4,6 +4,7 @@ import {
AppBskyGraphGetStarterPack, AppBskyGraphGetStarterPack,
AppBskyGraphStarterpack, AppBskyGraphStarterpack,
AppBskyRichtextFacet, AppBskyRichtextFacet,
asPredicate,
AtUri, AtUri,
BskyAgent, BskyAgent,
RichText, RichText,
@@ -368,7 +369,7 @@ export async function precacheStarterPack(
starterPackView = starterPack starterPackView = starterPack
} else if ( } else if (
AppBskyGraphDefs.isStarterPackViewBasic(starterPack) && AppBskyGraphDefs.isStarterPackViewBasic(starterPack) &&
AppBskyGraphStarterpack.isValidRecord(starterPack.record) asPredicate(AppBskyGraphStarterpack.validateRecord)(starterPack.record)
) { ) {
const listView: AppBskyGraphDefs.ListViewBasic = { const listView: AppBskyGraphDefs.ListViewBasic = {
uri: starterPack.record.list, uri: starterPack.record.list,