From 58898b953d858e27c8078ea5bb51c2081fc1d1aa Mon Sep 17 00:00:00 2001 From: Max Antony Date: Mon, 22 Dec 2025 19:59:48 -0500 Subject: [PATCH] Update life-cycle.md Corrects a minor typing error that can cause a "variable not found" error --- docs/essential/life-cycle.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/essential/life-cycle.md b/docs/essential/life-cycle.md index 9d8b49bd..636c226b 100644 --- a/docs/essential/life-cycle.md +++ b/docs/essential/life-cycle.md @@ -707,7 +707,7 @@ const encoder = new TextEncoder() new Elysia() .mapResponse(({ responseValue, set }) => { - const isJson = typeof response === 'object' + const isJson = typeof responseValue === 'object' const text = isJson ? JSON.stringify(responseValue)