@itd-api/cache / isCacheOperationId
Function: isCacheOperationId()
function isCacheOperationId(value): value is "posts.stats" | "posts.comments" | "files.get" | "hashtags.trending" | "verification.status" | "shop.delivery.cities" | "shop.delivery.calculate" | "shop.delivery.points" | "auth.sessions" | "users.me" | "users.get" | "users.checkUsername" | "users.search" | "users.whoToFollow" | "users.topClans" | "users.followers" | "users.following" | "users.followStatus" | "users.blocked" | "users.getPrivacy" | "users.pins" | "posts.list" | "posts.get" | "posts.byUser" | "posts.likedByUser" | "comments.replies" | "notifications.list" | "notifications.count" | "notifications.getSettings" | "hashtags.search" | "hashtags.posts" | "search.all" | "subscription.status" | "subscription.methods" | "platform.changelog" | "platform.announcements" | "platform.portal" | "shop.products.list" | "shop.products.get" | "shop.delivery.countries" | "status.get";Defined in: packages/cache/src/operations.ts:83
Проверяет публичное имя кэшируемой операции.
Parameters
value
string
Returns
value is "posts.stats" | "posts.comments" | "files.get" | "hashtags.trending" | "verification.status" | "shop.delivery.cities" | "shop.delivery.calculate" | "shop.delivery.points" | "auth.sessions" | "users.me" | "users.get" | "users.checkUsername" | "users.search" | "users.whoToFollow" | "users.topClans" | "users.followers" | "users.following" | "users.followStatus" | "users.blocked" | "users.getPrivacy" | "users.pins" | "posts.list" | "posts.get" | "posts.byUser" | "posts.likedByUser" | "comments.replies" | "notifications.list" | "notifications.count" | "notifications.getSettings" | "hashtags.search" | "hashtags.posts" | "search.all" | "subscription.status" | "subscription.methods" | "platform.changelog" | "platform.announcements" | "platform.portal" | "shop.products.list" | "shop.products.get" | "shop.delivery.countries" | "status.get"