diff --git a/dist/lib/index.d.ts b/dist/lib/index.d.ts index 9dc702f..d0c25f0 100644 --- a/dist/lib/index.d.ts +++ b/dist/lib/index.d.ts @@ -70,7 +70,7 @@ export declare type Terms = { * A `SearchFn` function matches documents in a single collection and returns a `SearchResult` based on the given * `terms`, `limit`, and `sort`. */ -export declare type SearchFn = (terms?: Terms>>, limit?: Limit, sort?: Sort>[] | Sort>) => Promise>; +export declare type SearchFn = (terms?: Terms>>, limit?: Limit, sort?: Sort>[] | Sort>) => Promise>; /** * Search results are a tuple of three values: * 1. The **total** number of matching documents in the searched collection, ignoring limit diff --git a/lib/index.ts b/lib/index.ts index b80cb04..0727553 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -85,7 +85,7 @@ export type Terms = { export type SearchFn = ( terms?: Terms>>, limit?: Limit, - sort?: Sort>[] | Sort> + sort?: Sort>[] | Sort> ) => Promise> /**