NoteEntity: Fix ESLint errors

We now use @types/shortid to provide type information

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-02-24 21:10:24 +01:00
parent 2c841ae578
commit a0ffa3be04
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
3 changed files with 7 additions and 1 deletions

View file

@ -61,6 +61,7 @@
"@types/express": "4.17.11",
"@types/jest": "26.0.20",
"@types/node": "13.13.45",
"@types/shortid": "^0.0.29",
"@types/supertest": "2.0.10",
"@typescript-eslint/eslint-plugin": "4.15.2",
"@typescript-eslint/parser": "4.15.2",

View file

@ -85,7 +85,7 @@ export class Note {
newNote.authorColors = [];
newNote.userPermissions = [];
newNote.groupPermissions = [];
newNote.revisions = Promise.resolve([]);
newNote.revisions = Promise.resolve([]) as Promise<Revision[]>;
newNote.description = null;
newNote.title = null;
newNote.tags = [];

View file

@ -1095,6 +1095,11 @@
"@types/mime" "^1"
"@types/node" "*"
"@types/shortid@^0.0.29":
version "0.0.29"
resolved "https://registry.yarnpkg.com/@types/shortid/-/shortid-0.0.29.tgz#8093ee0416a6e2bf2aa6338109114b3fbffa0e9b"
integrity sha1-gJPuBBam4r8qpjOBCRFLP7/6Dps=
"@types/source-list-map@*":
version "0.1.2"
resolved "https://registry.yarnpkg.com/@types/source-list-map/-/source-list-map-0.1.2.tgz#0078836063ffaf17412349bba364087e0ac02ec9"