File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments