UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

7 lines (5 loc) 282 B
import {type SearchTerms} from '../../../../../search' import {type RecentSearch} from '../datastores/recentSearches' export function isRecentSearchTerms(terms: SearchTerms | RecentSearch): terms is RecentSearch { return typeof (terms as RecentSearch).__recent !== 'undefined' }