File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { Task } from '../../src/Task/Task' ;
2
2
import { TaskLocation } from '../../src/Task/TaskLocation' ;
3
3
4
+ /**
5
+ * @see fromLines
6
+ * @see toLine
7
+ */
4
8
export function fromLine ( {
5
9
line,
6
10
path = '' ,
@@ -17,6 +21,11 @@ export function fromLine({
17
21
} ) ! ;
18
22
}
19
23
24
+ /**
25
+ * @see fromLine
26
+ * @see createTasksFromMarkdown
27
+ * @see toLines
28
+ */
20
29
export function fromLines ( {
21
30
lines,
22
31
path = '' ,
@@ -29,14 +38,25 @@ export function fromLines({
29
38
return lines . map ( ( line ) => fromLine ( { line, path, precedingHeader } ) ) ;
30
39
}
31
40
41
+ /**
42
+ * @see toLines
43
+ * @see fromLine
44
+ */
32
45
export function toLine ( task : Task ) {
33
46
return task . toFileLineString ( ) ;
34
47
}
35
48
49
+ /**
50
+ * @see toLine
51
+ * @see fromLines
52
+ */
36
53
export function toLines ( tasks : Task [ ] ) {
37
54
return tasks . map ( ( task ) => toLine ( task ) ) ;
38
55
}
39
56
57
+ /**
58
+ * @see fromLines
59
+ */
40
60
export function createTasksFromMarkdown ( tasksAsMarkdown : string , path : string , precedingHeader : string ) : Task [ ] {
41
61
const taskLines = tasksAsMarkdown . split ( '\n' ) ;
42
62
const tasks : Task [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments