From 29fdac89ab6a306e84a9532dd8001c5e94d624ec Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 18 Jul 2024 10:37:05 +0200 Subject: [PATCH] Node.js: Don't use deprecated syntax --- api/node/cover.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/node/cover.md b/api/node/cover.md index b26cc2d1d33..521193e4255 100644 --- a/api/node/cover.md +++ b/api/node/cover.md @@ -46,7 +46,7 @@ without pre-built binaries, you need to additional software: ``` import { AboutSlint, Button, VerticalBox } from "std-widgets.slint"; -export component Demo { +export component Demo inherits Window { in-out property greeting <=> label.text; VerticalBox { alignment: start; @@ -93,7 +93,7 @@ For a complete example, see [/examples/todo/node](https://github.com/slint-ui/sl ``` import { AboutSlint, Button, VerticalBox } from "std-widgets.slint"; -export component Demo { +export component Demo inherits Window { in-out property greeting <=> label.text; VerticalBox { alignment: start;