UNPKG

@fast-simon/storefront-kit

Version:

A comprehensive kit for developing storefronts with Fast Simon components, utilities, and React/Hydrogen support.

12 lines (11 loc) 318 B
import type { Options } from "./getSearchScore"; interface Props<T> { data: T[]; key?: keyof T; maxResult?: number; query: string; minScore?: number; options?: Options; } export default function getScoredResults<T>({ maxResult, data, query, key, minScore, options }: Props<T>): T[]; export {};