| 1443 | cacheStatus: string | null; |
| 1444 | }; |
| 1445 | interface KVNamespace<Key extends string = string> { |
| 1446 | get(key: Key, options?: Partial<KVNamespaceGetOptions<undefined>>): Promise<string | null>; |
| 1447 | get(key: Key, type: "text"): Promise<string | null>; |
| 1448 | get<ExpectedValue = unknown>(key: Key, type: "json"): Promise<ExpectedValue | null>; |
| 1449 | get(key: Key, type: "arrayBuffer"): Promise<ArrayBuffer | null>; |
| 1450 | get(key: Key, type: "stream"): Promise<ReadableStream | null>; |
| 1451 | get(key: Key, options?: KVNamespaceGetOptions<"text">): Promise<string | null>; |
| 1452 | get<ExpectedValue = unknown>(key: Key, options?: KVNamespaceGetOptions<"json">): Promise<ExpectedValue | null>; |
| 1453 | get(key: Key, options?: KVNamespaceGetOptions<"arrayBuffer">): Promise<ArrayBuffer | null>; |
| 1454 | get(key: Key, options?: KVNamespaceGetOptions<"stream">): Promise<ReadableStream | null>; |
| 1455 | get(key: Array<Key>, type: "text"): Promise<Map<string, string | null>>; |
| 1456 | get<ExpectedValue = unknown>(key: Array<Key>, type: "json"): Promise<Map<string, ExpectedValue | null>>; |
| 1457 | get(key: Array<Key>, options?: Partial<KVNamespaceGetOptions<undefined>>): Promise<Map<string, string | null>>; |
| 1458 | get(key: Array<Key>, options?: KVNamespaceGetOptions<"text">): Promise<Map<string, string | null>>; |
| 1459 | get<ExpectedValue = unknown>(key: Array<Key>, options?: KVNamespaceGetOptions<"json">): Promise<Map<string, ExpectedValue | null>>; |
| 1460 | list<Metadata = unknown>(options?: KVNamespaceListOptions): Promise<KVNamespaceListResult<Metadata, Key>>; |
| 1461 | put(key: Key, value: string | ArrayBuffer | ArrayBufferView | ReadableStream, options?: KVNamespacePutOptions): Promise<void>; |
| 1462 | getWithMetadata<Metadata = unknown>(key: Key, options?: Partial<KVNamespaceGetOptions<undefined>>): Promise<KVNamespaceGetWithMetadataResult<string, Metadata>>; |
| 1463 | getWithMetadata<Metadata = unknown>(key: Key, type: "text"): Promise<KVNamespaceGetWithMetadataResult<string, Metadata>>; |
| 1464 | getWithMetadata<ExpectedValue = unknown, Metadata = unknown>(key: Key, type: "json"): Promise<KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>; |
| 1465 | getWithMetadata<Metadata = unknown>(key: Key, type: "arrayBuffer"): Promise<KVNamespaceGetWithMetadataResult<ArrayBuffer, Metadata>>; |
| 1466 | getWithMetadata<Metadata = unknown>(key: Key, type: "stream"): Promise<KVNamespaceGetWithMetadataResult<ReadableStream, Metadata>>; |
| 1467 | getWithMetadata<Metadata = unknown>(key: Key, options: KVNamespaceGetOptions<"text">): Promise<KVNamespaceGetWithMetadataResult<string, Metadata>>; |
| 1468 | getWithMetadata<ExpectedValue = unknown, Metadata = unknown>(key: Key, options: KVNamespaceGetOptions<"json">): Promise<KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>; |
| 1469 | getWithMetadata<Metadata = unknown>(key: Key, options: KVNamespaceGetOptions<"arrayBuffer">): Promise<KVNamespaceGetWithMetadataResult<ArrayBuffer, Metadata>>; |
| 1470 | getWithMetadata<Metadata = unknown>(key: Key, options: KVNamespaceGetOptions<"stream">): Promise<KVNamespaceGetWithMetadataResult<ReadableStream, Metadata>>; |
| 1471 | getWithMetadata<Metadata = unknown>(key: Array<Key>, type: "text"): Promise<Map<string, KVNamespaceGetWithMetadataResult<string, Metadata>>>; |
| 1472 | getWithMetadata<ExpectedValue = unknown, Metadata = unknown>(key: Array<Key>, type: "json"): Promise<Map<string, KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>>; |
| 1473 | getWithMetadata<Metadata = unknown>(key: Array<Key>, options?: Partial<KVNamespaceGetOptions<undefined>>): Promise<Map<string, KVNamespaceGetWithMetadataResult<string, Metadata>>>; |
| 1474 | getWithMetadata<Metadata = unknown>(key: Array<Key>, options?: KVNamespaceGetOptions<"text">): Promise<Map<string, KVNamespaceGetWithMetadataResult<string, Metadata>>>; |
| 1475 | getWithMetadata<ExpectedValue = unknown, Metadata = unknown>(key: Array<Key>, options?: KVNamespaceGetOptions<"json">): Promise<Map<string, KVNamespaceGetWithMetadataResult<ExpectedValue, Metadata>>>; |
| 1476 | delete(key: Key): Promise<void>; |
| 1477 | } |
| 1478 | interface KVNamespaceListOptions { |
| 1479 | limit?: number; |
| 1480 | prefix?: (string | null); |
no outgoing calls
no test coverage detected