mirror of
https://github.com/juherr/kill-the-news.git
synced 2026-08-05 09:04:16 +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 <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
b24ee969d1
commit
b26990a875
+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