From a3b373e57125314d44366b3cc29dd70472ab824e Mon Sep 17 00:00:00 2001 From: hasezoey Date: Wed, 20 Jul 2022 17:38:23 +0200 Subject: [PATCH] style: fix lint from #12067 --- test/schema.test.js | 2 +- types/mongooseoptions.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/schema.test.js b/test/schema.test.js index 58d03cfb905..c22631cc93e 100644 --- a/test/schema.test.js +++ b/test/schema.test.js @@ -2815,7 +2815,7 @@ describe('schema', function() { assert.ok({}.toString()); }); - + it('enable defining virtual paths by using schema constructor (gh-11908)', async function() { function get() {return this.email.slice(this.email.indexOf('@') + 1);} function set(v) { this.email = [this.email.slice(0, this.email.indexOf('@')), v].join('@');} diff --git a/types/mongooseoptions.d.ts b/types/mongooseoptions.d.ts index b470e1aa9b6..87ae8aa826c 100644 --- a/types/mongooseoptions.d.ts +++ b/types/mongooseoptions.d.ts @@ -79,8 +79,8 @@ declare module 'mongoose' { | stream.Writable | ((collectionName: string, methodName: string, ...methodArgs: any[]) => void); - /** - * If `true`, adds a `id` virtual to all schemas unless overwritten on a per-schema basis. + /** + * If `true`, adds a `id` virtual to all schemas unless overwritten on a per-schema basis. * @defaultValue true */ id?: boolean;