Skip to content

Commit 9721e98

Browse files
lint
1 parent b2b784e commit 9721e98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/fresh/src/context.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ export class Context<State> {
380380
* ctx.text("Hello World!");
381381
* ```
382382
*/
383-
text(content: string, init?: ResponseInit) {
383+
text(content: string, init?: ResponseInit): Response {
384384
const headers = getHeadersFromInit(init);
385385
headers.set("Content-Type", "text/plain; charset=utf-8");
386386

@@ -393,7 +393,7 @@ export class Context<State> {
393393
* ctx.html("<h1>foo</h1>");
394394
* ```
395395
*/
396-
html(content: string, init?: ResponseInit) {
396+
html(content: string, init?: ResponseInit): Response {
397397
const headers = getHeadersFromInit(init);
398398
headers.set("Content-Type", "text/html; charset=utf-8");
399399

@@ -408,7 +408,7 @@ export class Context<State> {
408408
* ```
409409
*/
410410
// deno-lint-ignore no-explicit-any
411-
json(content: any, init?: ResponseInit) {
411+
json(content: any, init?: ResponseInit): Response {
412412
return Response.json(content, init);
413413
}
414414

0 commit comments

Comments
 (0)