( target: TargetShape, identity: Identity, path: string, body?: unknown, timeoutMs?: number, )
| 178 | }; |
| 179 | |
| 180 | const postJson = <T>( |
| 181 | target: TargetShape, |
| 182 | identity: Identity, |
| 183 | path: string, |
| 184 | body?: unknown, |
| 185 | timeoutMs?: number, |
| 186 | ): Promise<T> => |
| 187 | request<T>( |
| 188 | target, |
| 189 | identity, |
| 190 | path, |
| 191 | { |
| 192 | method: "POST", |
| 193 | ...(body !== undefined ? { body: JSON.stringify(body) } : {}), |
| 194 | }, |
| 195 | 200, |
| 196 | timeoutMs, |
| 197 | ); |
| 198 | |
| 199 | const deleteSource = (target: TargetShape, identity: Identity, slug: string): Effect.Effect<void> => |
| 200 | Effect.promise(() => |
no test coverage detected