Skip to content

Commit

Permalink
fix(lagon): fix process.env types
Browse files Browse the repository at this point in the history
  • Loading branch information
cyco130 committed Sep 3, 2023
1 parent c516f30 commit 7ebc513
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/adapter/adapter-lagon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
},
"devDependencies": {
"@cyco130/eslint-config": "^3.3.2",
"@types/node": "^20.5.7",
"eslint": "^8.48.0",
"publint": "^0.2.2",
"tsup": "^7.2.0",
Expand Down
10 changes: 9 additions & 1 deletion packages/adapter/adapter-lagon/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { HattipHandler } from "@hattip/core";
import process from "node:process";

export default function lagonAdapter(hattipHandler: HattipHandler) {
return function handler(request: Request) {
Expand All @@ -19,3 +18,12 @@ export default function lagonAdapter(hattipHandler: HattipHandler) {
});
};
}

declare global {
interface Process {
env: Record<string, string | undefined>;
}

// eslint-disable-next-line no-var
var process: Process;
}
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7ebc513

Please sign in to comment.