Skip to content

Commit 82b9c3c

Browse files
committed
style: fix lint
1 parent 02699fa commit 82b9c3c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/document.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12233,7 +12233,7 @@ describe('document', function() {
1223312233
assert.deepStrictEqual(doc.elements[0].modifiedPaths(), []);
1223412234
assert.deepStrictEqual(doc.elements[1].modifiedPaths(), []);
1223512235
});
12236-
12236+
1223712237
it('avoids prototype pollution on init', async function() {
1223812238
const Example = db.model('Example', new Schema({ hello: String }));
1223912239

test/types/models.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,4 +638,4 @@ function gh13529() {
638638
const resourceDoc = new dbModel();
639639
resourceDoc.foo = 'bar';
640640
}
641-
}
641+
}

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ declare module 'mongoose' {
422422

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

427427
/** Creates a virtual type with the given name. */
428428
virtual<T = HydratedDocument<DocType, TVirtuals & TInstanceMethods, TQueryHelpers>>(

types/utility.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ declare module 'mongoose' {
2121
*/
2222
type FlatRecord<T> = { [K in keyof T]: T[K] };
2323

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

0 commit comments

Comments
 (0)