(tasks: readonly Task[], ref: string)
| 246 | } |
| 247 | |
| 248 | export function findTaskByRef(tasks: readonly Task[], ref: string): Task | undefined { |
| 249 | return tasks.find((task) => task.id === ref || task.key === ref); |
| 250 | } |
| 251 | |
| 252 | export function normalizeTaskSubject(input: unknown): TaskLedgerNormalizeResult<string> { |
| 253 | if (typeof input !== 'string') { |
no outgoing calls
no test coverage detected