| 2454 | include?: ('httpMetadata' | 'customMetadata')[] |
| 2455 | } |
| 2456 | interface R2Bucket { |
| 2457 | head(key: string): Promise<R2Object | null> |
| 2458 | get( |
| 2459 | key: string, |
| 2460 | options: R2GetOptions & { |
| 2461 | onlyIf: R2Conditional | Headers |
| 2462 | }, |
| 2463 | ): Promise<R2ObjectBody | R2Object | null> |
| 2464 | get(key: string, options?: R2GetOptions): Promise<R2ObjectBody | null> |
| 2465 | put( |
| 2466 | key: string, |
| 2467 | value: |
| 2468 | | ReadableStream |
| 2469 | | ArrayBuffer |
| 2470 | | ArrayBufferView |
| 2471 | | string |
| 2472 | | null |
| 2473 | | Blob, |
| 2474 | options?: R2PutOptions & { |
| 2475 | onlyIf: R2Conditional | Headers |
| 2476 | }, |
| 2477 | ): Promise<R2Object | null> |
| 2478 | put( |
| 2479 | key: string, |
| 2480 | value: |
| 2481 | | ReadableStream |
| 2482 | | ArrayBuffer |
| 2483 | | ArrayBufferView |
| 2484 | | string |
| 2485 | | null |
| 2486 | | Blob, |
| 2487 | options?: R2PutOptions, |
| 2488 | ): Promise<R2Object> |
| 2489 | createMultipartUpload( |
| 2490 | key: string, |
| 2491 | options?: R2MultipartOptions, |
| 2492 | ): Promise<R2MultipartUpload> |
| 2493 | resumeMultipartUpload(key: string, uploadId: string): R2MultipartUpload |
| 2494 | delete(keys: string | string[]): Promise<void> |
| 2495 | list(options?: R2ListOptions): Promise<R2Objects> |
| 2496 | } |
| 2497 | interface R2MultipartUpload { |
| 2498 | readonly key: string |
| 2499 | readonly uploadId: string |
no outgoing calls
no test coverage detected