docs/types.d.ts

12 lines
273 B
TypeScript
Raw Permalink Normal View History

2024-07-22 11:49:47 +02:00
import type { SearchOptions } from "flexsearch";
declare module "@/mdx/search.mjs" {
export type Result = {
url: string;
title: string;
pageTitle?: string;
};
export function search(query: string, options?: SearchOptions): Result[];
}