Download frontend/src/api/open-hands.utils.ts from ar08/zzz: direct link, hf CLI and curl.
- Browser
- Download file 271 Bytes
-
https://huggingface.co/spaces/ar08/zzz/resolve/main/frontend/src/api/open-hands.utils.ts
- Command line
-
hf download hf://spaces/ar08/zzz/frontend/src/api/open-hands.utils.ts
-
curl -L -o open-hands.utils.ts https://huggingface.co/spaces/ar08/zzz/resolve/main/frontend/src/api/open-hands.utils.ts
271 Bytes
| import { ErrorResponse, FileUploadSuccessResponse } from "./open-hands.types"; | |
| export const isOpenHandsErrorResponse = ( | |
| data: ErrorResponse | FileUploadSuccessResponse, | |
| ): data is ErrorResponse => | |
| typeof data === "object" && data !== null && "error" in data; | |