Skip to content

Commit

Permalink
chore: update some dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Dec 21, 2021
1 parent dc535ea commit d564362
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1689,7 +1689,7 @@ declare module 'mongoose' {
enum?: Array<string | number | null> | ReadonlyArray<string | number | null> | { values: Array<string | number | null> | ReadonlyArray<string | number | null>, 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];
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions test/types.buffer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions test/typescript/generics.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Model, Document } from 'mongoose';

class Repository<T> {
private readonly Model: Model<T & Document>
private readonly Model: Model<T & Document>;

findById(id:string): Promise<T & Document> {
return Model.findById(id).exec();
}
}

class Foo {
name: string
name: string;
}

type Test = Repository<Foo>;

0 comments on commit d564362

Please sign in to comment.