@yext/search-ui-react
Version:
A library of React Components for powering Yext Search integrations
15 lines (14 loc) • 416 B
text/typescript
/**
* Data needed to create a URL to a vertical search page.
*
* @public
*/
export interface VerticalLink {
/** The vertical key associated with the vertical link. */
verticalKey: string,
/** The query used when the vertical link is selected. */
query?: string
}
export const isVerticalLink = (obj: unknown): obj is VerticalLink => {
return typeof obj === 'object' && !!obj && 'verticalKey' in obj;
};