NoteUtils: Add methods to parse note metadata

These methods are intended to parse metadata details from YAML tags, but not implemented for now.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2020-09-19 17:32:08 +02:00
parent f5e043b8b1
commit f937042439
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

18
src/notes/note.utils.ts Normal file
View file

@ -0,0 +1,18 @@
import { Note } from './note.entity';
export class NoteUtils {
public static parseTitle(note: Note): string {
// TODO: Implement method
return 'Hardcoded note title';
}
public static parseDescription(note: Note): string {
// TODO: Implement method
return 'Hardcoded note description';
}
public static parseTags(note: Note): string[] {
// TODO: Implement method
return ['Hardcoded note tag'];
}
}