fix: address PR review comments

- Fix KV json overload to return Promise<unknown | null> (null on missing keys)
- Add shebang to Husky pre-commit hook
- Explicitly add eslint ^10.0.0 to devDependencies

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Julien Herr
2026-05-21 12:09:26 +02:00
parent b24ee969d1
commit b26990a875
3 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ declare global {
// This is not an ideal solution but works for our example
interface KVNamespace {
get(key: string, options?: { type: "text" }): Promise<string | null>;
get(key: string, options: { type: "json" }): Promise<unknown>;
get(key: string, options: { type: "json" }): Promise<unknown | null>;
get(
key: string,
options: { type: "arrayBuffer" },