mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Formatting
This commit is contained in:
parent
24a3be8f04
commit
77528e7e64
12
typings/lunr/index.d.ts
vendored
12
typings/lunr/index.d.ts
vendored
@ -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<string, unknown>
|
||||
fields: Fields[]
|
||||
}
|
||||
|
||||
/**
|
||||
* Improve typings of query builder
|
||||
*/
|
||||
interface Builder {
|
||||
field(
|
||||
fieldName: string,
|
||||
|
Loading…
Reference in New Issue
Block a user