@enonic/mock-xp
Version:
Mock Enonic XP API JavaScript Library
14 lines (13 loc) • 406 B
TypeScript
export interface Highlight {
encoder?: "default" | "html";
fragmenter?: "simple" | "span";
fragmentSize?: number;
numberOfFragments?: number;
noMatchSize?: number;
order?: "score" | "none";
preTag?: string;
postTag?: string;
requireFieldMatch?: boolean;
tagsSchema?: string;
properties?: Record<string, Highlight>; // Yes it's optional, no error will occur, but no highilights returned either
}