From 77528e7e64b5da10bd12097a09836632d97e37eb Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 11 Dec 2022 15:56:47 +0100 Subject: [PATCH] Formatting --- typings/lunr/index.d.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/typings/lunr/index.d.ts b/typings/lunr/index.d.ts index d6601570d..cc8d3e822 100644 --- a/typings/lunr/index.d.ts +++ b/typings/lunr/index.d.ts @@ -26,19 +26,25 @@ import lunr from "lunr" * Global types * ------------------------------------------------------------------------- */ -type Fields = "text" | "title" | "tags" - declare global { namespace lunr { + /** + * Indexed fields + */ + type Fields = "text" | "title" | "tags" + /** * Index - expose inverted index */ - interface Index { // this is defined in the actual inverface... + interface Index { invertedIndex: Record fields: Fields[] } + /** + * Improve typings of query builder + */ interface Builder { field( fieldName: string,