Skip to content

Commit 6601b3d

Browse files
authored
Update 03-typescript.md
Fix TS error: Cannot invoke an object which is possibly 'undefined'.
1 parent 520055c commit 6601b3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/07-misc/03-typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Not all elements have a dedicated type definition. For those without one, use `S
156156
</script>
157157
158158
<div {...rest}>
159-
{@render children()}
159+
{@render children?.()}
160160
</div>
161161
```
162162

0 commit comments

Comments
 (0)