diff --git a/.husky/pre-commit b/.husky/pre-commit index 57fb103..1ac5081 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1,2 @@ +#!/bin/sh npx lint-staged && npm run typecheck && npm test diff --git a/package.json b/package.json index 3240bcb..df540a9 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "@types/mailparser": "^3.4.6", "@types/rss": "^0.0.32", "@vitest/coverage-v8": "^4.0.18", + "eslint": "^10.0.0", "eslint-config-prettier": "^10.1.8", "happy-dom": "^20.5.0", "husky": "^9.1.7", diff --git a/src/types/index.ts b/src/types/index.ts index 7bc7b86..92f2a08 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -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; - get(key: string, options: { type: "json" }): Promise; + get(key: string, options: { type: "json" }): Promise; get( key: string, options: { type: "arrayBuffer" },