chore: use jsDoc to explain param

This commit is contained in:
kolaente 2022-09-30 13:36:57 +02:00
parent d58f8b4ba1
commit 5bd7c77b68
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -9,8 +9,10 @@ function cleanupTitle(title: string) {
const spaceRegex = /^ */
// taskTitles should be multiple lines of task tiles with indention to declare their parent/subtask
// relation between each other.
/**
* @param taskTitles should be multiple lines of task tiles with indention to declare their parent/subtask
* relation between each other.
*/
export function parseSubtasksViaIndention(taskTitles: string): TaskWithParent[] {
const titles = taskTitles.split(/[\r\n]+/)