From e3422e182bab59fcecee435d5b0f160180db6a29 Mon Sep 17 00:00:00 2001 From: Not-Jayden Date: Tue, 27 Jun 2023 14:27:59 +0800 Subject: [PATCH] docs: Don't recommend TypeScript type assertions for reactive declarations (#8824) strictly speaking that's not the same and could hide some type errors --- documentation/docs/05-misc/03-typescript.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/documentation/docs/05-misc/03-typescript.md b/documentation/docs/05-misc/03-typescript.md index 4adc4d3480..36378365fd 100644 --- a/documentation/docs/05-misc/03-typescript.md +++ b/documentation/docs/05-misc/03-typescript.md @@ -176,16 +176,14 @@ You cannot type your reactive declarations with TypeScript in the way you type a ``` -You cannot add a `: TYPE` because it's invalid syntax in this position. Instead, you can use the `as` or move the definition to a `let` statement just above: +You cannot add a `: TYPE` because it's invalid syntax in this position. Instead, you can move the definition to a `let` statement just above: ```svelte ```