From a0ffa3be046deda8701297fcc8a2438b5033731e Mon Sep 17 00:00:00 2001 From: David Mehren Date: Wed, 24 Feb 2021 21:10:24 +0100 Subject: [PATCH] NoteEntity: Fix ESLint errors We now use @types/shortid to provide type information Signed-off-by: David Mehren --- package.json | 1 + src/notes/note.entity.ts | 2 +- yarn.lock | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 84060db2a..d69ac4275 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/notes/note.entity.ts b/src/notes/note.entity.ts index dd1dba79d..1adcef9cb 100644 --- a/src/notes/note.entity.ts +++ b/src/notes/note.entity.ts @@ -85,7 +85,7 @@ export class Note { newNote.authorColors = []; newNote.userPermissions = []; newNote.groupPermissions = []; - newNote.revisions = Promise.resolve([]); + newNote.revisions = Promise.resolve([]) as Promise; newNote.description = null; newNote.title = null; newNote.tags = []; diff --git a/yarn.lock b/yarn.lock index 3e8f27d75..bba002f5a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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"