diff --git a/types/query.d.ts b/types/query.d.ts index ab7174f11b0..541974e6f75 100644 --- a/types/query.d.ts +++ b/types/query.d.ts @@ -579,7 +579,7 @@ declare module 'mongoose' { snapshot(val?: boolean): this; /** Sets the sort order. If an object is passed, values allowed are `asc`, `desc`, `ascending`, `descending`, `1`, and `-1`. */ - sort(arg?: string | { [key: string]: SortOrder } | undefined | null): this; + sort(arg?: string | { [key: string]: SortOrder | { $meta: 'textScore' } } | undefined | null): this; /** Sets the tailable option (for use with capped collections). */ tailable(bool?: boolean, opts?: {