From 28eacbca7be189e4ac821bef356aca497c316433 Mon Sep 17 00:00:00 2001 From: Vrajpal Jhala <43914725+vrajpal-jhala@users.noreply.github.com> Date: Wed, 1 Apr 2026 12:48:41 +0530 Subject: [PATCH 1/2] fix: tip syntax --- docs/essential/best-practice.md | 2 +- docs/patterns/macro.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/essential/best-practice.md b/docs/essential/best-practice.md index 7e255438..c33fb965 100644 --- a/docs/essential/best-practice.md +++ b/docs/essential/best-practice.md @@ -191,7 +191,7 @@ Each file has its own responsibility: Feel free to adapt this structure to your needs and use any coding pattern you prefer. -::: note +::: tip NOTE You may get a warning when using `cookie.name` as it might be `undefined` depending on your TypeScript configuration. Elysia cookie can never be `undefined` because it's a Proxy object. `cookie` is always defined, only its value (via cookie.value) can be undefined. diff --git a/docs/patterns/macro.md b/docs/patterns/macro.md index 29c1c6d0..7bb363ec 100644 --- a/docs/patterns/macro.md +++ b/docs/patterns/macro.md @@ -137,7 +137,7 @@ Macro can also register a new property to the context, allowing us to access the The field can accept anything ranging from string to function, allowing us to create a custom life cycle event. -::: note +::: tip NOTE **macro** will be executed in order from top-to-bottom according to the definition in the hook, ensuring that the stack is handled in the correct order. :::--> From 8fa921a260559c3e4949e13870068daaf94402aa Mon Sep 17 00:00:00 2001 From: Vrajpal Jhala <43914725+vrajpal-jhala@users.noreply.github.com> Date: Wed, 1 Apr 2026 12:52:23 +0530 Subject: [PATCH 2/2] fix: remove tip title --- docs/essential/best-practice.md | 2 +- docs/patterns/macro.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/essential/best-practice.md b/docs/essential/best-practice.md index c33fb965..ea1733ec 100644 --- a/docs/essential/best-practice.md +++ b/docs/essential/best-practice.md @@ -191,7 +191,7 @@ Each file has its own responsibility: Feel free to adapt this structure to your needs and use any coding pattern you prefer. -::: tip NOTE +::: tip You may get a warning when using `cookie.name` as it might be `undefined` depending on your TypeScript configuration. Elysia cookie can never be `undefined` because it's a Proxy object. `cookie` is always defined, only its value (via cookie.value) can be undefined. diff --git a/docs/patterns/macro.md b/docs/patterns/macro.md index 7bb363ec..e28c2180 100644 --- a/docs/patterns/macro.md +++ b/docs/patterns/macro.md @@ -137,7 +137,7 @@ Macro can also register a new property to the context, allowing us to access the The field can accept anything ranging from string to function, allowing us to create a custom life cycle event. -::: tip NOTE +::: tip **macro** will be executed in order from top-to-bottom according to the definition in the hook, ensuring that the stack is handled in the correct order. :::-->