Skip to content

Commit

Permalink
style: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jul 10, 2023
1 parent 02699fa commit 82b9c3c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/document.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12233,7 +12233,7 @@ describe('document', function() {
assert.deepStrictEqual(doc.elements[0].modifiedPaths(), []);
assert.deepStrictEqual(doc.elements[1].modifiedPaths(), []);
});

it('avoids prototype pollution on init', async function() {
const Example = db.model('Example', new Schema({ hello: String }));

Expand Down
2 changes: 1 addition & 1 deletion test/types/models.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -638,4 +638,4 @@ function gh13529() {
const resourceDoc = new dbModel();
resourceDoc.foo = 'bar';
}
}
}
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ declare module 'mongoose' {

/** Object of currently defined statics on this schema. */
statics: { [F in keyof TStaticMethods]: TStaticMethods[F] } &
{ [name: string]: (this: TModelType, ...args: any[]) => unknown };
{ [name: string]: (this: TModelType, ...args: any[]) => unknown };

/** Creates a virtual type with the given name. */
virtual<T = HydratedDocument<DocType, TVirtuals & TInstanceMethods, TQueryHelpers>>(
Expand Down
2 changes: 1 addition & 1 deletion types/utility.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ declare module 'mongoose' {
*/
type FlatRecord<T> = { [K in keyof T]: T[K] };

/**
/**
* @summary Checks if a type is "Record" or "any".
* @description It Helps to check if user has provided schema type "EnforcedDocType"
* @param {T} T A generic type to be checked.
Expand Down

0 comments on commit 82b9c3c

Please sign in to comment.