(index: number, entry: NormalizedEntry)
| 46 | * 替换标准化条目 |
| 47 | */ |
| 48 | export function replaceNormalizedEntry(index: number, entry: NormalizedEntry): JsonPatch { |
| 49 | return [ |
| 50 | { |
| 51 | op: 'replace', |
| 52 | path: `/entries/${index}`, |
| 53 | value: entry, |
| 54 | }, |
| 55 | ] |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * 更新条目内容 |
no outgoing calls
no test coverage detected