From f9370424392caa46d31848b50f670f2ae0928a96 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Sat, 19 Sep 2020 17:32:08 +0200 Subject: [PATCH] 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 --- src/notes/note.utils.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/notes/note.utils.ts diff --git a/src/notes/note.utils.ts b/src/notes/note.utils.ts new file mode 100644 index 000000000..d84c4b182 --- /dev/null +++ b/src/notes/note.utils.ts @@ -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']; + } +}