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