(source: string)
| 101 | } |
| 102 | |
| 103 | function onChangeSource(source: string) { |
| 104 | const updates = { ...cell, source }; |
| 105 | updateCellOnClient(updates); |
| 106 | |
| 107 | const error = getValidationError(source); |
| 108 | setValidationError(error); |
| 109 | |
| 110 | if (error === null) { |
| 111 | updateCellOnServer(updates); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | const context: PackageJsonContextValue = { |
| 116 | source: cell.source, |
nothing calls this directly
no test coverage detected