created history.ts

- fixed imports
- added HistoryObject type
- made parseNoteInfo in note.ts static

Signed-off-by: Philip Molares <philip.molares@udo.edu>
Signed-off-by: David Mehren <dmehren1@gmail.com>
This commit is contained in:
Philip Molares 2020-04-12 14:33:34 +02:00 committed by David Mehren
parent 8e76c764e3
commit a7aaded6dd
No known key found for this signature in database
GPG key ID: 6017AF117F9756CB
2 changed files with 68 additions and 60 deletions

View file

@ -652,7 +652,7 @@ export class Note extends Model<Note> {
return operations
}
parseNoteInfo (body): { title: string; tags: string[] } {
static parseNoteInfo (body): { title: string; tags: string[] } {
const parsed = Note.extractMeta(body)
const $ = cheerio.load(md.render(parsed.markdown))
return {