@zerospacegg/vynthra
Version:
Discord bot for ZeroSpace.gg data
26 lines • 731 B
TypeScript
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