From 97185eb3d5e839d6da70edd3e1ebb97396c6197f Mon Sep 17 00:00:00 2001 From: Rob B <2623102+rob-balfre@users.noreply.github.com> Date: Thu, 21 Nov 2024 09:14:21 +1100 Subject: [PATCH] docs Update 03-typescript.md (#14382) * Update 03-typescript.md Fix TS error: Cannot invoke an object which is possibly 'undefined'. * Update 03-typescript.md --------- Co-authored-by: Rich Harris --- documentation/docs/07-misc/03-typescript.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/docs/07-misc/03-typescript.md b/documentation/docs/07-misc/03-typescript.md index e02ac7b6b1..f4513a9a2d 100644 --- a/documentation/docs/07-misc/03-typescript.md +++ b/documentation/docs/07-misc/03-typescript.md @@ -142,7 +142,7 @@ In case you're writing a component that wraps a native element, you may want to ``` @@ -156,7 +156,7 @@ Not all elements have a dedicated type definition. For those without one, use `S
- {@render children()} + {@render children?.()}
```