(index: number, content: string)
| 59 | * 更新条目内容 |
| 60 | */ |
| 61 | export function updateEntryContent(index: number, content: string): JsonPatch { |
| 62 | return [ |
| 63 | { |
| 64 | op: 'replace', |
| 65 | path: `/entries/${index}/content`, |
| 66 | value: content, |
| 67 | }, |
| 68 | ] |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * 更新工具状态 |
no outgoing calls
no test coverage detected