mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-06-20 22:03:48 +00:00
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:
+1
-1
@@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user