chore: use jsDoc to explain param
This commit is contained in:
parent
d58f8b4ba1
commit
5bd7c77b68
1 changed files with 4 additions and 2 deletions
|
@ -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]+/)
|
||||
|
||||
|
|
Loading…
Reference in a new issue