Skip to content

Commit

Permalink
Merge pull request #10801 from traverse1984/master
Browse files Browse the repository at this point in the history
Fix: Mongoose slows down performance of VSCode (TSServer) by a lot #1
  • Loading branch information
vkarpov15 authored Oct 4, 2021
2 parents e102688 + a71948f commit 9408a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ declare module 'mongoose' {
*/
export function isValidObjectId(v: any): boolean;

export function model<T>(name: string, schema?: Schema<any>, collection?: string, skipInit?: boolean): Model<T>;
export function model<T>(name: string, schema?: Schema<T> | Schema<T & Document>, collection?: string, skipInit?: boolean): Model<T>;
export function model<T, U, TQueryHelpers = {}>(
name: string,
schema?: Schema<T, U, TQueryHelpers>,
Expand Down

0 comments on commit 9408a6a

Please sign in to comment.