-
-
Notifications
You must be signed in to change notification settings - Fork 639
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -752,10 +752,12 @@ export class Context< | |
this.#preparedHeaders = {} | ||
} | ||
this.#preparedHeaders['content-type'] = TEXT_PLAIN | ||
// @ts-expect-error `Response` due to missing some types-only keys | ||
|
||
return typeof arg === 'number' | ||
Check failure on line 756 in src/context.ts GitHub Actions / Main
Check failure on line 756 in src/context.ts GitHub Actions / Main
Check failure on line 756 in src/context.ts GitHub Actions / Node.js v18.18.2
Check failure on line 756 in src/context.ts GitHub Actions / workerd
Check failure on line 756 in src/context.ts GitHub Actions / Node.js v20.x
|
||
? this.#newResponse(text, arg, headers) | ||
: this.#newResponse(text, arg) | ||
? // @ts-expect-error `Response` due to missing some types-only keys | ||
Check failure on line 757 in src/context.ts GitHub Actions / Main
Check failure on line 757 in src/context.ts GitHub Actions / Main
Check failure on line 757 in src/context.ts GitHub Actions / Node.js v18.18.2
Check failure on line 757 in src/context.ts GitHub Actions / workerd
Check failure on line 757 in src/context.ts GitHub Actions / Node.js v20.x
Check failure on line 757 in src/context.ts GitHub Actions / Node.js v22.x
|
||
this.#newResponse(text, arg, headers) | ||
: // @ts-expect-error `Response` due to missing some types-only keys | ||
Check failure on line 759 in src/context.ts GitHub Actions / Main
Check failure on line 759 in src/context.ts GitHub Actions / Main
Check failure on line 759 in src/context.ts GitHub Actions / Node.js v18.18.2
Check failure on line 759 in src/context.ts GitHub Actions / workerd
Check failure on line 759 in src/context.ts GitHub Actions / Node.js v20.x
Check failure on line 759 in src/context.ts GitHub Actions / Node.js v22.x
|
||
this.#newResponse(text, arg) | ||
} | ||
|
||
/** | ||
|