UNPKG

@zerospacegg/vynthra

Version:
26 lines 731 B
import type { Entity } from "@zerospacegg/iolin"; import type { Summary } from "@zerospacegg/iolin/meta/search-index"; export interface SingleMatch { type: "single"; entity: Summary; fullEntity: Entity; } export interface MultiMatch { type: "multi"; matches: Summary[]; } export interface NoMatch { type: "none"; query: string; } export type SearchResult = SingleMatch | MultiMatch | NoMatch; export interface SearchOptions { fuzzyThreshold?: number; maxResults?: number; } export interface ScoredMatch { entity: Summary; score: number; matchType: "exact-id" | "exact-slug" | "slug-end" | "id-segment" | "fuzzy-id" | "fuzzy-slug" | "fuzzy-name"; } //# sourceMappingURL=types.d.ts.map