UNPKG

@omnia/foundation

Version:

Provide omnia foundation typings and tooling work on client side for omnia extension

43 lines (42 loc) 1.2 kB
import { Enums } from '../extensibility'; export declare module Search { interface SearchResultProcessor { (items: Array<ISearchResult>): void; } interface IBaseSearchResult { title: string; highlightedProperties: string; path: string; contentType: Enums.SearchContentTypeEnum; } interface ISearchResult { imageUrl: string; linkUrl: string; title: string; summary: string; previewUrl: string; accountName?: string; } interface ISearchSourceType { all: number; sites: number; people: number; } interface IContentSearchResult extends IBaseSearchResult { highlightedSummary: string; spWebUrl: string; serverRedirectedUrl: string; serverRedirectedPreviewUrls: string; pictureUrl: string; fileExtension: string; } interface IPeopleSearchResult extends IBaseSearchResult { aboutMe: string; accountName: string; } interface IPeople { accountName: string; isFollowedPeople: boolean; isProcessing: boolean; } }