(value: string)
| 56 | } |
| 57 | |
| 58 | export function parseMoveNoteTarget(value: string): MoveNoteDestination { |
| 59 | const normalized = normalizeMoveTarget(value) |
| 60 | const [folder, ...rest] = normalized.split('/') |
| 61 | return { |
| 62 | folder: folder as MoveNoteDestination['folder'], |
| 63 | subpath: rest.join('/') |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * Resolve the destination chosen in the template destination prompt. The value |
no test coverage detected