Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
run_install: true
- run: pnpm run format
- run: pnpm run lint
- run: pnpm run typecheck
- run: pnpm run test

ci-build:
Expand Down
16 changes: 16 additions & 0 deletions benchmarks/fetch/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"target": "es2022",
"module": "ESNext",
"declaration": true,
"moduleResolution": "Bundler",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"types": ["node"],
"noEmit": true
},
"include": ["src/**/*", "scripts/**/*"]
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"postbuild": "publint",
"prerelease": "pnpm run build && pnpm run test --run",
"release": "np --no-publish",
"typecheck": "tsc --noEmit",
"lint": "eslint src test",
"lint:fix": "eslint src test --fix",
"format": "prettier --check \"src/**/*.{js,ts}\" \"test/**/*.{js,ts}\"",
Expand Down
2 changes: 1 addition & 1 deletion src/early-hints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const earlyHints = <E extends Env = any>(
}

const env = c.env || {}
const bindings = (env.server ? env.server : env) as HttpBindings
const bindings = ('server' in env ? env.server : env) as HttpBindings
const outgoing = bindings?.outgoing

// Capability check: outgoing.writeEarlyHints exists and is a function.
Expand Down