From d564362f9d45ae731cf63e9e6d8359bd2fd05661 Mon Sep 17 00:00:00 2001 From: Valeri Karpov Date: Tue, 21 Dec 2021 14:11:40 -0500 Subject: [PATCH] chore: update some dev deps --- index.d.ts | 4 ++-- package.json | 4 ++-- test/types.buffer.test.js | 4 ++-- test/typescript/generics.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/index.d.ts b/index.d.ts index b35298e2bf6..34cbf5b47af 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1332,7 +1332,7 @@ declare module 'mongoose' { /** Lists all paths and their type in the schema. */ paths: { [key: string]: SchemaType; - } + }; /** Returns the pathType of `path` for this schema. */ pathType(path: string): string; @@ -1689,7 +1689,7 @@ declare module 'mongoose' { enum?: Array | ReadonlyArray | { values: Array | ReadonlyArray, message?: string } | { [path: string]: string | number | null }; /** The default [subtype](http://bsonspec.org/spec.html) associated with this buffer when it is stored in MongoDB. Only allowed for buffer paths */ - subtype?: number + subtype?: number; /** The minimum value allowed for this path. Only allowed for numbers and dates. */ min?: number | NativeDate | [number, string] | [NativeDate, string] | readonly [number, string] | readonly [NativeDate, string]; diff --git a/package.json b/package.json index cc1c86e4fb6..9795ef7f2d1 100644 --- a/package.json +++ b/package.json @@ -32,8 +32,8 @@ "devDependencies": { "@babel/core": "7.10.5", "@babel/preset-env": "7.10.4", - "@typescript-eslint/eslint-plugin": "4.33.0", - "@typescript-eslint/parser": "4.33.0", + "@typescript-eslint/eslint-plugin": "5.8.0", + "@typescript-eslint/parser": "5.8.0", "acquit": "1.x", "acquit-ignore": "0.1.x", "acquit-require": "0.1.x", diff --git a/test/types.buffer.test.js b/test/types.buffer.test.js index 2b9dfa2bf46..bc1d47dbaa5 100644 --- a/test/types.buffer.test.js +++ b/test/types.buffer.test.js @@ -317,14 +317,14 @@ describe('types.buffer', function() { tj.required = Buffer.alloc(8); reset(tj); not(tj); - tj.required.writeDoubleLE(0xdeadbeefcafebabe, 0); + tj.required.writeDoubleLE(0xdeadbeefcafebabe, 0); // eslint-disable-line no-loss-of-precision is(tj); }, writeDoubleBE: function() { tj.required = Buffer.alloc(8); reset(tj); not(tj); - tj.required.writeDoubleBE(0xdeadbeefcafebabe, 0); + tj.required.writeDoubleBE(0xdeadbeefcafebabe, 0); // eslint-disable-line no-loss-of-precision is(tj); }, fill: function() { diff --git a/test/typescript/generics.ts b/test/typescript/generics.ts index 595590ea7fa..d111cd98106 100644 --- a/test/typescript/generics.ts +++ b/test/typescript/generics.ts @@ -1,7 +1,7 @@ import { Model, Document } from 'mongoose'; class Repository { - private readonly Model: Model + private readonly Model: Model; findById(id:string): Promise { return Model.findById(id).exec(); @@ -9,7 +9,7 @@ class Repository { } class Foo { - name: string + name: string; } type Test = Repository; \ No newline at end of file