summaryrefslogtreecommitdiff
path: root/docs/guide/typescript/cli-app.md
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-12-25 02:38:27 +0100
committerGitHub <[email protected]>2024-12-25 02:38:27 +0100
commit37f0d24178a1516eb45eb639640e07c5dc3b8e81 (patch)
tree28ff8d1030be1919c00152e99b4ab9c229b0f01b /docs/guide/typescript/cli-app.md
parent553b2186db47fb34602d4e949c1e40a018238d7a (diff)
parent0f2fefd2053203e1bfe4d66eb4e37dea07369890 (diff)
Merge pull request #196 from Aylur/feat/jsx-gtk4
Add jsx support for gtk4
Diffstat (limited to 'docs/guide/typescript/cli-app.md')
-rw-r--r--docs/guide/typescript/cli-app.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/guide/typescript/cli-app.md b/docs/guide/typescript/cli-app.md
index 9b299aa..41b1d7c 100644
--- a/docs/guide/typescript/cli-app.md
+++ b/docs/guide/typescript/cli-app.md
@@ -26,7 +26,7 @@ App.start({
## Instance identifier
-You can run multiple instance by defining a unique instance name.
+You can run multiple instances by defining a unique instance name.
```ts
App.start({
@@ -44,7 +44,7 @@ you can do so by sending a message.
App.start({
requestHandler(request: string, res: (response: any) => void) {
if (request == "say hi") {
- res("hi cli")
+ return res("hi cli")
}
res("unknown command")
},
@@ -140,7 +140,7 @@ App.start({
// every subsequent calls
client(message: (msg: string) => string, ...args: Array<string>) {
const res = message("you can message the main instance")
- console.log(res)
+ print(res)
},
// this runs in the main instance