From a6bf91c83b29070a8c3ff2848d51b88bfa224aad Mon Sep 17 00:00:00 2001 From: Raymond Wang Date: Mon, 8 Apr 2024 07:04:15 -0400 Subject: [PATCH] docs: add file annotations to examples that benefit from ts toggle (#11058) --- .../docs/02-template-syntax/01-svelte-components.md | 1 + .../docs/02-template-syntax/05-element-directives.md | 6 ++++++ .../docs/02-template-syntax/07-special-elements.md | 2 ++ documentation/docs/03-runtime/07-svelte-action.md | 3 +++ packages/svelte/README.md | 2 +- 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/documentation/docs/02-template-syntax/01-svelte-components.md b/documentation/docs/02-template-syntax/01-svelte-components.md index adce71f684..7316e213b8 100644 --- a/documentation/docs/02-template-syntax/01-svelte-components.md +++ b/documentation/docs/02-template-syntax/01-svelte-components.md @@ -177,6 +177,7 @@ Total: {total} It is important to note that the reactive blocks are ordered via simple static analysis at compile time, and all the compiler looks at are the variables that are assigned to and used within the block itself, not in any functions called by them. This means that `yDependent` will not be updated when `x` is updated in the following example: ```svelte +