(script: Script | CurrentScript)
| 183 | }); |
| 184 | |
| 185 | const updateScript = (script: Script | CurrentScript): Promise<Response> => |
| 186 | fetch(BASE_PATH + 'api/scripts', { |
| 187 | method: 'PUT', |
| 188 | headers: DEFAULT_HEADERS, |
| 189 | body: JSON.stringify(script), |
| 190 | }); |
| 191 | |
| 192 | const moveScript = ( |
| 193 | id: number, |